Skip to main content

IAdhocAssetLoaderMethods

Trait IAdhocAssetLoaderMethods 

Source
pub trait IAdhocAssetLoaderMethods: IAdhocAssetLoader {
    // Provided methods
    fn on_destroy(self) { ... }
    fn get_item(self, path: impl Into<Il2CppString>) -> GameObject { ... }
    fn add(self, name: impl Into<Il2CppString>) { ... }
    fn preload(self) { ... }
    fn is_ready(self) -> bool { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn on_destroy(self)

OnDestroy() overload

Source

fn get_item(self, path: impl Into<Il2CppString>) -> GameObject

get_Item(::unity::Il2CppString) overload

Source

fn add(self, name: impl Into<Il2CppString>)

Add(::unity::Il2CppString) overload

Source

fn preload(self)

Preload() overload

Source

fn is_ready(self) -> bool

IsReady() 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: IAdhocAssetLoader> IAdhocAssetLoaderMethods for __T

Available on crate feature combat-adhocassetloader only.