Skip to main content

ISpriteAtlasMethods

Trait ISpriteAtlasMethods 

Source
pub trait ISpriteAtlasMethods: ISpriteAtlas {
    // Provided methods
    fn get_is_variant(self) -> bool { ... }
    fn get_tag(self) -> Il2CppString { ... }
    fn get_sprite_count(self) -> i32 { ... }
    fn can_bind_to(self, sprite: impl Into<Sprite>) -> bool { ... }
    fn get_sprite(self, name: impl Into<Il2CppString>) -> Sprite { ... }
    fn get_sprites(self, sprites: impl Into<Array<Sprite>>) -> i32 { ... }
    fn get_sprites_2(
        self,
        sprites: impl Into<Array<Sprite>>,
        name: impl Into<Il2CppString>,
    ) -> i32 { ... }
    fn get_sprites_scripting(self, sprites: impl Into<Array<Sprite>>) -> i32 { ... }
    fn get_sprites_with_name_scripting(
        self,
        sprites: impl Into<Array<Sprite>>,
        name: impl Into<Il2CppString>,
    ) -> i32 { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn get_is_variant(self) -> bool

get_isVariant() overload

Source

fn get_tag(self) -> Il2CppString

get_tag() overload

Source

fn get_sprite_count(self) -> i32

get_spriteCount() overload

Source

fn can_bind_to(self, sprite: impl Into<Sprite>) -> bool

CanBindTo(crate::unity_engine::sprite::Sprite) overload

Source

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

GetSprite(::unity::Il2CppString) overload

Source

fn get_sprites(self, sprites: impl Into<Array<Sprite>>) -> i32

GetSprites(::unity::Array<crate::unity_engine::sprite::Sprite>) overload

Source

fn get_sprites_2( self, sprites: impl Into<Array<Sprite>>, name: impl Into<Il2CppString>, ) -> i32

GetSprites(::unity::Array<crate::unity_engine::sprite::Sprite>, ::unity::Il2CppString) overload

Source

fn get_sprites_scripting(self, sprites: impl Into<Array<Sprite>>) -> i32

GetSpritesScripting(::unity::Array<crate::unity_engine::sprite::Sprite>) overload

Source

fn get_sprites_with_name_scripting( self, sprites: impl Into<Array<Sprite>>, name: impl Into<Il2CppString>, ) -> i32

GetSpritesWithNameScripting(::unity::Array<crate::unity_engine::sprite::Sprite>, ::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: ISpriteAtlas> ISpriteAtlasMethods for __T

Available on crate feature unity_engine-u2d-spriteatlas only.