Provides access to metadata stored for every available class.

Static variables

@:native("Singleton")staticread onlySINGLETON:Object

Static methods

@:native("CanInstance")staticcanInstance(class_:String):Bool

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

@:native("ClassExists")staticclassExists(class_:String):Bool

Returns whether the specified class is available or not.

@:native("ClassGetCategory")staticclassGetCategory(class_:String):String

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

staticinlineclassGetEnumConstants(class_:String, enum_:String, ?noInheritance:Bool):Array<String>

Returns an array with all the keys in enum of class or its ancestry.

staticinlineclassGetEnumList(class_:String, ?noInheritance:Bool):Array<String>

Returns an array with all the enums of class or its ancestry.

@:native("ClassGetIntegerConstant")staticclassGetIntegerConstant(class_:String, name:String):Int

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

@:native("ClassGetIntegerConstantEnum")staticclassGetIntegerConstantEnum(class_:String, name:String, ?noInheritance:Bool):String

Returns which enum the integer constant name of class or its ancestry belongs to.

staticinlineclassGetIntegerConstantList(class_:String, ?noInheritance:Bool):Array<String>

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

@:native("ClassGetMethodList")staticclassGetMethodList(class_:String, ?noInheritance:Bool):Array

Returns an array with all the methods of class or its ancestry if no_inheritance is false. Every element of the array is a godot.Collections_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.

@:native("ClassGetProperty")staticclassGetProperty(object:Object, property:String):Dynamic

Returns the value of property of class or its ancestry.

@:native("ClassGetPropertyList")staticclassGetPropertyList(class_:String, ?noInheritance:Bool):Array

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

@:native("ClassGetSignal")staticclassGetSignal(class_:String, signal:String):Dictionary

Returns the signal data of class or its ancestry. The returned value is a godot.Collections_Dictionary with the following keys: args, default_args, flags, id, name, return: (class_name, hint, hint_string, name, type, usage).

@:native("ClassGetSignalList")staticclassGetSignalList(class_:String, ?noInheritance:Bool):Array

Returns an array with all the signals of class or its ancestry if no_inheritance is false. Every element of the array is a godot.Collections_Dictionary as described in godot.ClassDB.classGetSignal.

@:native("ClassHasEnum")staticclassHasEnum(class_:String, name:String, ?noInheritance:Bool):Bool

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

@:native("ClassHasIntegerConstant")staticclassHasIntegerConstant(class_:String, name:String):Bool

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

@:native("ClassHasMethod")staticclassHasMethod(class_:String, method:String, ?noInheritance:Bool):Bool

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

@:native("ClassHasSignal")staticclassHasSignal(class_:String, signal:String):Bool

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

@:native("ClassSetProperty")staticclassSetProperty(object:Object, property:String, value:Dynamic):Error

Sets property value of class to value.

staticinlinegetClassList():Array<String>

Returns the names of all the classes available.

staticinlinegetInheritersFromClass(class_:String):Array<String>

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

@:native("GetParentClass")staticgetParentClass(class_:String):String

Returns the parent class of class.

@:native("Instance")staticinstance(class_:String):Dynamic

Creates an instance of class.

@:native("IsClassEnabled")staticisClassEnabled(class_:String):Bool

Returns whether this class is enabled or not.

@:native("IsParentClass")staticisParentClass(class_:String, inherits:String):Bool

Returns whether inherits is an ancestor of class or not.