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§
Sourcefn reset(self, path: impl Into<Il2CppString>)
fn reset(self, path: impl Into<Il2CppString>)
Reset(::unity::Il2CppString) overload
Sourcefn is_loading(self) -> bool
fn is_loading(self) -> bool
IsLoading() overload
fn load_async<M0: IlType + Copy + ClassIdentity>( self, path: impl Into<Il2CppString>, completed: impl Into<Action_1<M0>>, )
Sourcefn load_scene_async(
self,
path: impl Into<Il2CppString>,
mode: impl Into<LoadSceneMode>,
)
fn load_scene_async( self, path: impl Into<Il2CppString>, mode: impl Into<LoadSceneMode>, )
LoadSceneAsync(::unity::Il2CppString, crate::unity_engine::scene_management::loadscenemode::LoadSceneMode) overload
Sourcefn unload_scene_async(self)
fn unload_scene_async(self)
UnloadSceneAsync() overload
Sourcefn get_path(self) -> Il2CppString
fn get_path(self) -> Il2CppString
get_Path() overload
Sourcefn get_name(self) -> Il2CppString
fn get_name(self) -> Il2CppString
get_Name() overload
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
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§
impl<__T: IResourceHandle_2> IResourceHandle_2Methods for __T
Available on crate feature
app-resourcehandle_2 only.