GDExtensionInterfaceClassdbConstructObject typedef

GDExtensionInterfaceClassdbConstructObject = Pointer<NativeFunction<GDExtensionInterfaceClassdbConstructObjectFunction>>

@name classdb_construct_object @since 4.1 @deprecated in Godot 4.4. Use classdb_construct_object2 instead.

Constructs an Object of the requested class.

The passed class must be a built-in godot class, or an already-registered extension class. In both cases, object_set_instance() should be called to fully initialize the object.

@param p_classname A pointer to a StringName with the class name.

@return A pointer to the newly created Object.

Implementation

typedef GDExtensionInterfaceClassdbConstructObject =
    ffi.Pointer<
      ffi.NativeFunction<GDExtensionInterfaceClassdbConstructObjectFunction>
    >;