GDExtensionInterfaceObjectCastTo typedef

GDExtensionInterfaceObjectCastTo = Pointer<NativeFunction<GDExtensionInterfaceObjectCastToFunction>>

@name object_cast_to @since 4.1

Casts an Object to a different type.

@param p_object A pointer to the Object. @param p_class_tag A pointer uniquely identifying a built-in class in the ClassDB.

@return Returns a pointer to the Object, or NULL if it can't be cast to the requested type.

Implementation

typedef GDExtensionInterfaceObjectCastTo =
    ffi.Pointer<ffi.NativeFunction<GDExtensionInterfaceObjectCastToFunction>>;