Skip to main content

IInstanceCacheMethods

Trait IInstanceCacheMethods 

Source
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§

Source

fn get_used_effect_root(self) -> Transform

get_UsedEffectRoot() overload

Source

fn awake(self)

Awake() overload

Source

fn on_destroy(self)

OnDestroy() overload

Source

fn cleanup(self)

Cleanup() overload

Source

fn create( self, prefab: impl Into<GameObject>, parent: impl Into<Transform>, ) -> GameObject

Create(crate::unity_engine::gameobject::GameObject, crate::unity_engine::transform::Transform) overload

Source

fn delete(self, go: impl Into<GameObject>)

Delete(crate::unity_engine::gameobject::GameObject) overload

Source

fn replay_awake_sound(self, go: impl Into<GameObject>)

ReplayAwakeSound(crate::unity_engine::gameobject::GameObject) overload

Source

fn ctor(self)

.ctor() 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: IInstanceCache> IInstanceCacheMethods for __T

Available on crate feature combat-instancecache only.