Skip to main content

ISpriteManagerMethods

Trait ISpriteManagerMethods 

Source
pub trait ISpriteManagerMethods: ISpriteManager {
    // Provided methods
    fn ctor(self) { ... }
    fn load(self, path: impl Into<Il2CppString>) { ... }
    fn unload(self) { ... }
    fn get(self, name: impl Into<Il2CppString>) -> Sprite { ... }
    fn try_get(self, name: impl Into<Il2CppString>) -> Sprite { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

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

Load(::unity::Il2CppString) overload

Source

fn unload(self)

Unload() overload

Source

fn get(self, name: impl Into<Il2CppString>) -> Sprite

Get(::unity::Il2CppString) overload

Source

fn try_get(self, name: impl Into<Il2CppString>) -> Sprite

TryGet(::unity::Il2CppString) 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: ISpriteManager> ISpriteManagerMethods for __T

Available on crate feature app-spritemanager only.