Skip to main content

IIInstanceProvider_InterfaceMethods

Trait IIInstanceProvider_InterfaceMethods 

Source
pub trait IIInstanceProvider_InterfaceMethods: IIInstanceProvider_Interface {
    // Provided methods
    fn provide_instance(
        self,
        resource_manager: impl Into<ResourceManager>,
        prefab_handle: impl Into<AsyncOperationHandle_1<GameObject>>,
        instantiate_parameters: impl Into<InstantiationParameters>,
    ) -> GameObject { ... }
    fn release_instance(
        self,
        resource_manager: impl Into<ResourceManager>,
        instance: impl Into<GameObject>,
    ) { ... }
}

Provided Methods§

Source

fn provide_instance( self, resource_manager: impl Into<ResourceManager>, prefab_handle: impl Into<AsyncOperationHandle_1<GameObject>>, instantiate_parameters: impl Into<InstantiationParameters>, ) -> GameObject

ProvideInstance(crate::unity_engine::resource_management::resourcemanager::ResourceManager, crate::unity_engine::resource_management::async_operations::asyncoperationhandle_1::AsyncOperationHandle_1<crate::unity_engine::gameobject::GameObject>, crate::unity_engine::resource_management::resource_providers::instantiationparameters::InstantiationParameters) overload

Source

fn release_instance( self, resource_manager: impl Into<ResourceManager>, instance: impl Into<GameObject>, )

ReleaseInstance(crate::unity_engine::resource_management::resourcemanager::ResourceManager, crate::unity_engine::gameobject::GameObject) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IIInstanceProvider_Interface> IIInstanceProvider_InterfaceMethods for __T

Available on crate feature unity_engine-resource_management-resource_providers-iinstanceprovider_interface only.