Provides access to metadata stored for every available class.
API_CORE = 0
Native Core class type.
API_EDITOR = 1
Native Editor class type.
API_EXTENSION = 2
GDExtension class type.
API_EDITOR_EXTENSION = 3
GDExtension Editor class type.
API_NONE = 4
Unknown class type.
Returns true
if objects can be instantiated from the specified class
, otherwise returns false
.
Calls a static method on a class.
Returns whether the specified class
is available or not.
Returns the API type of class
. See APIType.
Returns an array with all the keys in enum
of class
or its ancestry.
Returns an array with all the enums of class
or its ancestry.
Returns the value of the integer constant name
of class
or its ancestry. Always returns 0 when the constant could not be found.
Returns which enum the integer constant name
of class
or its ancestry belongs to.
Returns an array with the names all the integer constants of class
or its ancestry.
Returns the number of arguments of the method method
of class
or its ancestry if no_inheritance
is false
.
Returns an array with all the methods of class
or its ancestry if no_inheritance
is false
. Every element of the array is a 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.
Returns the value of property
of object
or its ancestry.
Returns the default value of property
of class
or its ancestor classes.
Returns the getter method name of property
of class
.
Returns an array with all the properties of class
or its ancestry if no_inheritance
is false
.
Returns the setter method name of property
of class
.
Returns the signal
data of class
or its ancestry. The returned value is a Dictionary with the following keys: args
, default_args
, flags
, id
, name
, return: (class_name, hint, hint_string, name, type, usage)
.
Returns an array with all the signals of class
or its ancestry if no_inheritance
is false
. Every element of the array is a Dictionary as described in class_get_signal().
Returns whether class
or its ancestry has an enum called name
or not.
Returns whether class
or its ancestry has an integer constant called name
or not.
Returns whether class
(or its ancestry if no_inheritance
is false
) has a method called method
or not.
Returns whether class
or its ancestry has a signal called signal
or not.
Sets property
value of object
to value
.
Returns the names of all the classes available.
Returns the names of all the classes that directly or indirectly inherit from class
.
Returns the parent class of class
.
Creates an instance of class
.
Returns whether this class
is enabled or not.
Returns whether class
(or its ancestor classes if no_inheritance
is false
) has an enum called enum
that is a bitfield.
Returns whether inherits
is an ancestor of class
or not.