pub struct SpriteAtlasData {
pub alphaTexture: PPtr,
pub downscaleMultiplier: f32,
pub settingsRaw: u32,
pub texture: PPtr,
pub textureRect: Rectf,
pub textureRectOffset: Vector2f,
pub uvTransform: Vector4f,
pub atlasRectOffset: Option<Vector2f>,
pub secondaryTextures: Option<Vec<SecondarySpriteTexture>>,
}Expand description
SpriteAtlasData is a sub class of the Unity engine since version 2017.1.0b1.
Fields§
§alphaTexture: PPtrPPtr<Texture2D>: (2017.1.0b1 - 2022.3.2f1)
downscaleMultiplier: f32§settingsRaw: u32§texture: PPtrPPtr<Texture2D>: (2017.1.0b1 - 2022.3.2f1)
textureRect: Rectf§textureRectOffset: Vector2f§uvTransform: Vector4f§atlasRectOffset: Option<Vector2f>Vector2f: (2017.1.2f1 - 2022.3.2f1)
secondaryTextures: Option<Vec<SecondarySpriteTexture>>Vec
Trait Implementations§
Source§impl Debug for SpriteAtlasData
impl Debug for SpriteAtlasData
Source§impl<'de> Deserialize<'de> for SpriteAtlasData
impl<'de> Deserialize<'de> for SpriteAtlasData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SpriteAtlasData
impl RefUnwindSafe for SpriteAtlasData
impl Send for SpriteAtlasData
impl Sync for SpriteAtlasData
impl Unpin for SpriteAtlasData
impl UnwindSafe for SpriteAtlasData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more