Class information repository.
    public static class ClassDB

Provides access to metadata stored for every available class.

Inheritance Chain

Static Properties

    public static Object Singleton { get; }

Static Methods

    public static bool CanInstance(string @class)

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

    public static bool ClassExists(string @class)

Returns whether the specified class is available or not.

    public static string ClassGetCategory(string @class)

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

    public static int ClassGetIntegerConstant(string @class, string name)

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

    public static string[] ClassGetIntegerConstantList(string @class, bool noInheritance = false)

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

    public static Godot.Collections.Array ClassGetMethodList(string @class, bool noInheritance = false)

Returns an array with all the methods of class or its ancestry if noInheritance 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).

    public static object ClassGetProperty(Object @object, string property)

Returns the value of property of class or its ancestry.

    public static Godot.Collections.Array ClassGetPropertyList(string @class, bool noInheritance = false)

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

    public static Dictionary ClassGetSignal(string @class, string signal)

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 static Godot.Collections.Array ClassGetSignalList(string @class, bool noInheritance = false)

Returns an array with all the signals of class or its ancestry if noInheritance is false. Every element of the array is a Dictionary as described in ClassGetSignal(string, string).

    public static bool ClassHasIntegerConstant(string @class, string name)

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

    public static bool ClassHasMethod(string @class, string method, bool noInheritance = false)

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

    public static bool ClassHasSignal(string @class, string signal)

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

    public static Error ClassSetProperty(Object @object, string property, object value)

Sets property value of class to value.

    public static string[] GetClassList()

Returns the names of all the classes available.

    public static string[] GetInheritersFromClass(string @class)

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

    public static string GetParentClass(string @class)

Returns the parent class of class.

    public static object Instance(string @class)

Creates an instance of class.

    public static bool IsClassEnabled(string @class)

Returns whether this class is enabled or not.

    public static bool IsParentClass(string @class, string inherits)

Returns whether inherits is an ancestor of class or not.

Tags: