pub type GDExtensionInterfaceScriptInstanceCreate = Option<unsafe extern "C" fn(p_info: *const GDExtensionScriptInstanceInfo, p_instance_data: GDExtensionScriptInstanceDataPtr) -> GDExtensionScriptInstancePtr>;Expand description
@name script_instance_create
@since 4.1
@deprecated in Godot 4.2. Use script_instance_create3 instead.
Creates a script instance that contains the given info and instance data.
@param p_info A pointer to a GDExtensionScriptInstanceInfo struct. @param p_instance_data A pointer to a data representing the script instance in the GDExtension. This will be passed to all the function pointers on p_info.
@return A pointer to a ScriptInstanceExtension object.
Aliased Type§
pub enum GDExtensionInterfaceScriptInstanceCreate {
None,
Some(unsafe extern "C" fn(*const GDExtensionScriptInstanceInfo, *mut __GdextScriptInstanceData) -> *mut __GdextScriptInstance),
}Variants§
None
No value.
Some(unsafe extern "C" fn(*const GDExtensionScriptInstanceInfo, *mut __GdextScriptInstanceData) -> *mut __GdextScriptInstance)
Some value of type T.