Click or drag to resize

ClassDB Methods

The ClassDB type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCanInstance

Returns true if you can instance objects from the specified class, false in other case.

Public methodStatic memberClassExists

Returns whether the specified class is available or not.

Public methodStatic memberClassGetCategory

Returns a category associated with the class for use in documentation and the Asset Library. Debug mode required.

Public methodStatic memberClassGetIntegerConstant

Returns the value of the integer constant name of class or its ancestry. Always returns 0 when the constant could not be found.

Public methodStatic memberClassGetIntegerConstantList

Returns an array with the names all the integer constants of class or its ancestry.

Public methodStatic memberClassGetMethodList

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.

Public methodStatic memberClassGetProperty

Returns the value of property of class or its ancestry.

Public methodStatic memberClassGetPropertyList

Returns an array with all the properties of class or its ancestry if no_inheritance is false.

Public methodStatic memberClassGetSignal

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).

Public methodStatic memberClassGetSignalList

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 ClassGetSignal(String, String).

Public methodStatic memberClassHasIntegerConstant

Returns whether class or its ancestry has an integer constant called name or not.

Public methodStatic memberClassHasMethod

Returns whether class (or its ancestry if no_inheritance is false) has a method called method or not.

Public methodStatic memberClassHasSignal

Returns whether class or its ancestry has a signal called signal or not.

Public methodStatic memberClassSetProperty

Sets property value of class to value.

Public methodStatic memberGetClassList

Returns the names of all the classes available.

Public methodStatic memberGetInheritersFromClass

Returns the names of all the classes that directly or indirectly inherit from class.

Public methodStatic memberGetParentClass

Returns the parent class of class.

Public methodStatic memberInstance

Creates an instance of class.

Public methodStatic memberIsClassEnabled

Returns whether this class is enabled or not.

Public methodStatic memberIsParentClass

Returns whether inherits is an ancestor of class or not.

Top
See Also