Provides access to metadata stored for every available class.
Static variables
Static methods
staticcanInstance(class_:String):Bool
Returns true
if you can instance objects from the specified class
, false
in other case.
staticclassGetCategory(class_:String):String
Returns a category associated with the class for use in documentation and the Asset Library. Debug mode required.
staticinlineclassGetEnumConstants(class_:String, enum_:String, ?noInheritance:Bool):Array<String>
Returns an array with all the keys in enum
of class
or its ancestry.
staticinlineclassGetEnumList(class_:String, ?noInheritance:Bool):Array<String>
Returns an array with all the enums of class
or its ancestry.
staticclassGetIntegerConstant(class_:String, name:String):Int
Returns the value of the integer constant name
of class
or its ancestry. Always returns 0 when the constant could not be found.
staticclassGetIntegerConstantEnum(class_:String, name:String, ?noInheritance:Bool):String
Returns which enum the integer constant name
of class
or its ancestry belongs to.
staticinlineclassGetIntegerConstantList(class_:String, ?noInheritance:Bool):Array<String>
Returns an array with the names all the integer constants of class
or its ancestry.
staticclassGetMethodList(class_:String, ?noInheritance:Bool):Array
Returns an array with all the methods of class
or its ancestry if no_inheritance
is false
. Every element of the array is a godot.Collections_Dictionary
with the following keys: args
, default_args
, flags
, id
, name
, return: (class_name, hint, hint_string, name, type, usage)
.
Note: In exported release builds the debug info is not available, so the returned dictionaries will contain only method names.
staticclassGetProperty(object:Object, property:String):Dynamic
Returns the value of property
of class
or its ancestry.
staticclassGetPropertyList(class_:String, ?noInheritance:Bool):Array
Returns an array with all the properties of class
or its ancestry if no_inheritance
is false
.
staticclassGetSignal(class_:String, signal:String):Dictionary
Returns the signal
data of class
or its ancestry. The returned value is a godot.Collections_Dictionary
with the following keys: args
, default_args
, flags
, id
, name
, return: (class_name, hint, hint_string, name, type, usage)
.
staticclassGetSignalList(class_:String, ?noInheritance:Bool):Array
Returns an array with all the signals of class
or its ancestry if no_inheritance
is false
. Every element of the array is a godot.Collections_Dictionary
as described in godot.ClassDB.classGetSignal
.
staticclassHasEnum(class_:String, name:String, ?noInheritance:Bool):Bool
Returns whether class
or its ancestry has an enum called name
or not.
staticclassHasIntegerConstant(class_:String, name:String):Bool
Returns whether class
or its ancestry has an integer constant called name
or not.
staticclassHasMethod(class_:String, method:String, ?noInheritance:Bool):Bool
Returns whether class
(or its ancestry if no_inheritance
is false
) has a method called method
or not.
staticclassHasSignal(class_:String, signal:String):Bool
Returns whether class
or its ancestry has a signal called signal
or not.
staticclassSetProperty(object:Object, property:String, value:Dynamic):Error
Sets property
value of class
to value
.
staticinlinegetInheritersFromClass(class_:String):Array<String>
Returns the names of all the classes that directly or indirectly inherit from class
.
staticisParentClass(class_:String, inherits:String):Bool
Returns whether inherits
is an ancestor of class
or not.