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.
Returns an array with all the keys in enum 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 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 if no_inheritance is false) has a method called method or not.
Returns the names of all engine classes available.
Note: Script-defined classes with class_name are not included in this list. Use ProjectSettings.get_global_class_list() to get a list of script-defined classes instead.
Returns whether class (or its ancestor classes if no_inheritance is false) has an enum called enum that is a bitfield.