Skip to main content

IResourceHandle_2Methods

Trait IResourceHandle_2Methods 

Source
pub trait IResourceHandle_2Methods: IResourceHandle_2 {
Show 14 methods // Provided methods fn ctor(self) { ... } fn finalize(self) { ... } fn reset(self, path: impl Into<Il2CppString>) { ... } fn is_loading(self) -> bool { ... } fn dispose(self) { ... } fn load_async<M0: IlType + Copy + ClassIdentity>( self, path: impl Into<Il2CppString>, completed: impl Into<Action_1<M0>>, ) { ... } fn load_scene_async( self, path: impl Into<Il2CppString>, mode: impl Into<LoadSceneMode>, ) { ... } fn unload_scene_async(self) { ... } fn release(self) { ... } fn get_path(self) -> Il2CppString { ... } fn get_name(self) -> Il2CppString { ... } fn get_asset<M0: IlType + Copy + ClassIdentity>(self) -> M0 { ... } fn instantiate<M0: IlType + Copy + ClassIdentity>( self, parent: impl Into<GameObject>, ) -> M0 { ... } fn instantiate_2<M0: IlType + Copy + ClassIdentity>( self, parent: impl Into<Transform>, ) -> M0 { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn finalize(self)

Finalize() overload

Source

fn reset(self, path: impl Into<Il2CppString>)

Reset(::unity::Il2CppString) overload

Source

fn is_loading(self) -> bool

IsLoading() overload

Source

fn dispose(self)

Dispose() overload

Source

fn load_async<M0: IlType + Copy + ClassIdentity>( self, path: impl Into<Il2CppString>, completed: impl Into<Action_1<M0>>, )

Source

fn load_scene_async( self, path: impl Into<Il2CppString>, mode: impl Into<LoadSceneMode>, )

LoadSceneAsync(::unity::Il2CppString, crate::unity_engine::scene_management::loadscenemode::LoadSceneMode) overload

Source

fn unload_scene_async(self)

UnloadSceneAsync() overload

Source

fn release(self)

Release() overload

Source

fn get_path(self) -> Il2CppString

get_Path() overload

Source

fn get_name(self) -> Il2CppString

get_Name() overload

Source

fn get_asset<M0: IlType + Copy + ClassIdentity>(self) -> M0

Source

fn instantiate<M0: IlType + Copy + ClassIdentity>( self, parent: impl Into<GameObject>, ) -> M0

Source

fn instantiate_2<M0: IlType + Copy + ClassIdentity>( self, parent: impl Into<Transform>, ) -> M0

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: IResourceHandle_2> IResourceHandle_2Methods for __T

Available on crate feature app-resourcehandle_2 only.