Skip to main content

IHubResourceMethods

Trait IHubResourceMethods 

Source
pub trait IHubResourceMethods: IHubResource {
    // Provided methods
    fn get<M0: IlType + Copy + ClassIdentity>(
        self,
        name: impl Into<Il2CppString>,
    ) -> M0 { ... }
    fn is_loading(self) -> bool { ... }
    fn on_create(self) { ... }
    fn on_dispose(self) { ... }
    fn add(self, path: impl Into<Il2CppString>) { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn get<M0: IlType + Copy + ClassIdentity>( self, name: impl Into<Il2CppString>, ) -> M0

Source

fn is_loading(self) -> bool

IsLoading() overload

Source

fn on_create(self)

OnCreate() overload

Source

fn on_dispose(self)

OnDispose() overload

Source

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

Add(::unity::Il2CppString) 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: IHubResource> IHubResourceMethods for __T

Available on crate feature app-hubresource only.