Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

ClassDB

Inherits: Object

A class information repository.

Description

Provides access to metadata stored for every available class.

Methods

bool

can_instantiate ( StringName class ) const

bool

class_exists ( StringName class ) const

PackedStringArray

class_get_enum_constants ( StringName class, StringName enum, bool no_inheritance=false ) const

PackedStringArray

class_get_enum_list ( StringName class, bool no_inheritance=false ) const

int

class_get_integer_constant ( StringName class, StringName name ) const

StringName

class_get_integer_constant_enum ( StringName class, StringName name, bool no_inheritance=false ) const

PackedStringArray

class_get_integer_constant_list ( StringName class, bool no_inheritance=false ) const

Dictionary[]

class_get_method_list ( StringName class, bool no_inheritance=false ) const

Variant

class_get_property ( Object object, StringName property ) const

Dictionary[]

class_get_property_list ( StringName class, bool no_inheritance=false ) const

Dictionary

class_get_signal ( StringName class, StringName signal ) const

Dictionary[]