A class information repository.
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.
Returns [code]true[/code] if objects can be instantiated from the specified [param class], otherwise returns [code]false[/code].
Calls a static method on a class.
Returns whether the specified [param class] is available or not.
Returns the API type of the specified [param class].
Returns an array with all the keys in [param enum] of [param class] or its ancestry.
Returns an array with all the enums of [param class] or its ancestry.
Returns the value of the integer constant [param name] of [param class] or its ancestry. Always returns 0 when the constant could not be found.
Returns which enum the integer constant [param name] of [param class] or its ancestry belongs to.
Returns an array with the names all the integer constants of [param class] or its ancestry.
Returns the number of arguments of the method [param method] of [param class] or its ancestry if [param no_inheritance] is [code]false[/code].
Returns an array with all the methods of [param class] or its ancestry if [param no_inheritance] is [code]false[/code]. Every element of the array is a [Dictionary] with the following keys: [code]args[/code], [code]default_args[/code], [code]flags[/code], [code]id[/code], [code]name[/code], [code]return: (class_name, hint, hint_string, name, type, usage)[/code].
[b]Note:[/b] In exported release builds the debug info is not available, so the returned dictionaries will contain only method names.
Returns the value of [param property] of [param object] or its ancestry.
Returns the default value of [param property] of [param class] or its ancestor classes.
Returns the getter method name of [param property] of [param class].
Returns an array with all the properties of [param class] or its ancestry if [param no_inheritance] is [code]false[/code].
Returns the setter method name of [param property] of [param class].
Returns the [param signal] data of [param class] or its ancestry. The returned value is a [Dictionary] with the following keys: [code]args[/code], [code]default_args[/code], [code]flags[/code], [code]id[/code], [code]name[/code], [code]return: (class_name, hint, hint_string, name, type, usage)[/code].
Returns an array with all the signals of [param class] or its ancestry if [param no_inheritance] is [code]false[/code]. Every element of the array is a [Dictionary] as described in [method class_get_signal].
Returns whether [param class] or its ancestry has an enum called [param name] or not.
Returns whether [param class] or its ancestry has an integer constant called [param name] or not.
Returns whether [param class] (or its ancestry if [param no_inheritance] is [code]false[/code]) has a method called [param method] or not.
Returns whether [param class] or its ancestry has a signal called [param signal] or not.
Sets [param property] value of [param object] to [param value].
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.
Returns the names of all engine classes that directly or indirectly inherit from [param class].
Returns the parent class of [param class].
Creates an instance of [param class].
Returns whether this [param class] is enabled or not.
Returns whether [param class] (or its ancestor classes if [param no_inheritance] is [code]false[/code]) has an enum called [param enum] that is a bitfield.
Returns whether [param inherits] is an ancestor of [param class] or not.
Native Core class type.
Native Editor class type.
GDExtension class type.
GDExtension Editor class type.
Unknown class type.