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§
Sourcefn get_is_variant(self) -> bool
fn get_is_variant(self) -> bool
get_isVariant() overload
Sourcefn get_tag(self) -> Il2CppString
fn get_tag(self) -> Il2CppString
get_tag() overload
Sourcefn get_sprite_count(self) -> i32
fn get_sprite_count(self) -> i32
get_spriteCount() overload
Sourcefn can_bind_to(self, sprite: impl Into<Sprite>) -> bool
fn can_bind_to(self, sprite: impl Into<Sprite>) -> bool
CanBindTo(crate::unity_engine::sprite::Sprite) overload
Sourcefn get_sprite(self, name: impl Into<Il2CppString>) -> Sprite
fn get_sprite(self, name: impl Into<Il2CppString>) -> Sprite
GetSprite(::unity::Il2CppString) overload
Sourcefn get_sprites(self, sprites: impl Into<Array<Sprite>>) -> i32
fn get_sprites(self, sprites: impl Into<Array<Sprite>>) -> i32
GetSprites(::unity::Array<crate::unity_engine::sprite::Sprite>) overload
Sourcefn get_sprites_2(
self,
sprites: impl Into<Array<Sprite>>,
name: impl Into<Il2CppString>,
) -> i32
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
Sourcefn get_sprites_scripting(self, sprites: impl Into<Array<Sprite>>) -> i32
fn get_sprites_scripting(self, sprites: impl Into<Array<Sprite>>) -> i32
GetSpritesScripting(::unity::Array<crate::unity_engine::sprite::Sprite>) overload
Sourcefn get_sprites_with_name_scripting(
self,
sprites: impl Into<Array<Sprite>>,
name: impl Into<Il2CppString>,
) -> i32
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
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§
impl<__T: ISpriteAtlas> ISpriteAtlasMethods for __T
Available on crate feature
unity_engine-u2d-spriteatlas only.