pub trait IInstanceCacheMethods: IInstanceCache {
// Provided methods
fn get_used_effect_root(self) -> Transform { ... }
fn awake(self) { ... }
fn on_destroy(self) { ... }
fn cleanup(self) { ... }
fn create(
self,
prefab: impl Into<GameObject>,
parent: impl Into<Transform>,
) -> GameObject { ... }
fn delete(self, go: impl Into<GameObject>) { ... }
fn replay_awake_sound(self, go: impl Into<GameObject>) { ... }
fn ctor(self) { ... }
}Provided Methods§
Sourcefn get_used_effect_root(self) -> Transform
fn get_used_effect_root(self) -> Transform
get_UsedEffectRoot() overload
Sourcefn on_destroy(self)
fn on_destroy(self)
OnDestroy() overload
Sourcefn create(
self,
prefab: impl Into<GameObject>,
parent: impl Into<Transform>,
) -> GameObject
fn create( self, prefab: impl Into<GameObject>, parent: impl Into<Transform>, ) -> GameObject
Create(crate::unity_engine::gameobject::GameObject, crate::unity_engine::transform::Transform) overload
Sourcefn delete(self, go: impl Into<GameObject>)
fn delete(self, go: impl Into<GameObject>)
Delete(crate::unity_engine::gameobject::GameObject) overload
Sourcefn replay_awake_sound(self, go: impl Into<GameObject>)
fn replay_awake_sound(self, go: impl Into<GameObject>)
ReplayAwakeSound(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§
impl<__T: IInstanceCache> IInstanceCacheMethods for __T
Available on crate feature
combat-instancecache only.