class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS Object ClassDB
A class information repository.
Provides access to metadata stored for every available engine class.
Note: Script-defined classes with class_name are not part of ClassDB, so they will not return reflection data such as a method or property list. However, GDExtension-defined classes are part of ClassDB, so they will return reflection data.
Enum APIType<>():Enum

API_CORE:null = 0
Native Core class type.


API_EDITOR:null = 1
Native Editor class type.


API_EXTENSION:null = 2
GDExtension class type.


API_EDITOR_EXTENSION:null = 3
GDExtension Editor class type.


API_NONE:null = 4
Unknown class type.
bool can_instantiate<>( StringName class=, class:StringName=, ):bool
Returns true if objects can be instantiated from the specified class, otherwise returns false.

Variant class_call_static<>( StringName class=, class:StringName=, StringName method=, method:StringName=, ):Variant
Calls a static method on a class.

bool class_exists<>( StringName class=, class:StringName=, ):bool
Returns whether the specified class is available or not.

int class_get_api_type<>( StringName class=, class:StringName=, ):int
Returns the API type of the specified class.

PackedStringArray class_get_enum_constants<>( StringName class=, class:StringName=, StringName enum=, enum:StringName=, bool no_inheritance=false, no_inheritance:bool=false, ):PackedStringArray
Returns an array with all the keys in enum of class or its ancestry.

PackedStringArray class_get_enum_list<>( StringName class=, class:StringName=, bool no_inheritance=false, no_inheritance:bool=false, ):PackedStringArray
Returns an array with all the enums of class or its ancestry.

int class_get_integer_constant<>( StringName class=, class:StringName=, StringName name=, name:StringName=, ):int
Returns the value of the integer constant name of class or its ancestry. Always returns 0 when the constant could not be found.

StringName class_get_integer_constant_enum<>( StringName class=, class:StringName=, StringName name=, name:StringName=, bool no_inheritance=false, no_inheritance:bool=false, ):StringName
Returns which enum the integer constant name of class or its ancestry belongs to.

PackedStringArray class_get_integer_constant_list<>( StringName class=, class:StringName=, bool no_inheritance=false, no_inheritance:bool=false, ):PackedStringArray
Returns an array with the names all the integer constants of class or its ancestry.

int class_get_method_argument_count<>( StringName class=, class:StringName=, StringName method=, method:StringName=, bool no_inheritance=false, no_inheritance:bool=false, ):int
Returns the number of arguments of the method method of class or its ancestry if no_inheritance is false.

Dictionary[] class_get_method_list<>( StringName class=, class:StringName=, bool no_inheritance=false, no_inheritance:bool=false, ):Dictionary[]
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.
Variant class_get_property<>( Object object=, object:Object=, StringName property=, property:StringName=, ):Variant
Returns the value of property of object or its ancestry.

Variant class_get_property_default_value<>( StringName class=, class:StringName=, StringName property=, property:StringName=, ):Variant
Returns the default value of property of class or its ancestor classes.

StringName class_get_property_getter<>( StringName class=, class:StringName=, StringName property=, property:StringName=, ):StringName
Returns the getter method name of property of class.

Dictionary[] class_get_property_list<>( StringName class=, class:StringName=, bool no_inheritance=false, no_inheritance:bool=false, ):Dictionary[]
Returns an array with all the properties of class or its ancestry if no_inheritance is false.

StringName class_get_property_setter<>( StringName class=, class:StringName=, StringName property=, property:StringName=, ):StringName
Returns the setter method name of property of class.

Dictionary class_get_signal<>( StringName class=, class:StringName=, StringName signal=, signal:StringName=, ):Dictionary
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).

Dictionary[] class_get_signal_list<>( StringName class=, class:StringName=, bool no_inheritance=false, no_inheritance:bool=false, ):Dictionary[]
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.

bool class_has_enum<>( StringName class=, class:StringName=, StringName name=, name:StringName=, bool no_inheritance=false, no_inheritance:bool=false, ):bool
Returns whether class or its ancestry has an enum called name or not.

bool class_has_integer_constant<>( StringName class=, class:StringName=, StringName name=, name:StringName=, ):bool
Returns whether class or its ancestry has an integer constant called name or not.

bool class_has_method<>( StringName class=, class:StringName=, StringName method=, method:StringName=, bool no_inheritance=false, no_inheritance:bool=false, ):bool
Returns whether class (or its ancestry if no_inheritance is false) has a method called method or not.

bool class_has_signal<>( StringName class=, class:StringName=, StringName signal=, signal:StringName=, ):bool
Returns whether class or its ancestry has a signal called signal or not.

int class_set_property<>( Object object=, object:Object=, StringName property=, property:StringName=, Variant value=, value:Variant=, ):int
Sets property value of object to value.

PackedStringArray get_class_list<>():PackedStringArray
Returns the names of all engine classes available.

Note: Script-defined classes with class_name are not included in this list. Use [method ProjectSettings.get_global_class_list] to get a list of script-defined classes instead.
PackedStringArray get_inheriters_from_class<>( StringName class=, class:StringName=, ):PackedStringArray
Returns the names of all engine classes that directly or indirectly inherit from class.

StringName get_parent_class<>( StringName class=, class:StringName=, ):StringName
Returns the parent class of class.

Variant instantiate<>( StringName class=, class:StringName=, ):Variant
Creates an instance of class.

bool is_class_enabled<>( StringName class=, class:StringName=, ):bool
Returns whether this class is enabled or not.

bool is_class_enum_bitfield<>( StringName class=, class:StringName=, StringName enum=, enum:StringName=, bool no_inheritance=false, no_inheritance:bool=false, ):bool
Returns whether class (or its ancestor classes if no_inheritance is false) has an enum called enum that is a bitfield.

bool is_parent_class<>( StringName class=, class:StringName=, StringName inherits=, inherits:StringName=, ):bool
Returns whether inherits is an ancestor of class or not.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...