Переглянути джерело

Document ClassDB not storing information on user-defined classes

Hugo Locurcio 3 тижнів тому
батько
коміт
336ba216ac
1 змінених файлів з 5 додано та 3 видалено
  1. 5 3
      doc/classes/ClassDB.xml

+ 5 - 3
doc/classes/ClassDB.xml

@@ -4,7 +4,8 @@
 		A class information repository.
 		A class information repository.
 	</brief_description>
 	</brief_description>
 	<description>
 	<description>
-		Provides access to metadata stored for every available class.
+		Provides access to metadata stored for every available engine class.
+		[b]Note:[/b] Script-defined classes with [code]class_name[/code] are not part of [ClassDB], so they will not return reflection data such as a method or property list. However, [GDExtension]-defined classes [i]are[/i] part of [ClassDB], so they will return reflection data.
 	</description>
 	</description>
 	<tutorials>
 	<tutorials>
 	</tutorials>
 	</tutorials>
@@ -200,14 +201,15 @@
 		<method name="get_class_list" qualifiers="const">
 		<method name="get_class_list" qualifiers="const">
 			<return type="PackedStringArray" />
 			<return type="PackedStringArray" />
 			<description>
 			<description>
-				Returns the names of all the classes available.
+				Returns the names of all engine classes available.
+				[b]Note:[/b] Script-defined classes with [code]class_name[/code] are not included in this list. Use [method ProjectSettings.get_global_class_list] to get a list of script-defined classes instead.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="get_inheriters_from_class" qualifiers="const">
 		<method name="get_inheriters_from_class" qualifiers="const">
 			<return type="PackedStringArray" />
 			<return type="PackedStringArray" />
 			<param index="0" name="class" type="StringName" />
 			<param index="0" name="class" type="StringName" />
 			<description>
 			<description>
-				Returns the names of all the classes that directly or indirectly inherit from [param class].
+				Returns the names of all engine classes that directly or indirectly inherit from [param class].
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="get_parent_class" qualifiers="const">
 		<method name="get_parent_class" qualifiers="const">