SpriteRenderData

Struct SpriteRenderData 

Source
pub struct SpriteRenderData {
Show 16 fields pub settingsRaw: u32, pub texture: PPtr, pub textureRect: Rectf, pub textureRectOffset: Vector2f, pub alphaTexture: Option<PPtr>, pub atlasRectOffset: Option<Vector2f>, pub downscaleMultiplier: Option<f32>, pub indices: Option<Vec<u16>>, pub m_Bindpose: Option<Vec<Matrix4x4f>>, pub m_IndexBuffer: Option<Vec<u8>>, pub m_SourceSkin: Option<Vec<BoneWeights4>>, pub m_SubMeshes: Option<Vec<SubMesh>>, pub m_VertexData: Option<VertexData>, pub secondaryTextures: Option<Vec<SecondarySpriteTexture>>, pub uvTransform: Option<Vector4f>, pub vertices: Option<Vec<SpriteVertex>>,
}
Expand description

SpriteRenderData is a sub class of the Unity engine since version 4.3.0.

Fields§

§settingsRaw: u32§texture: PPtr

PPtr<Texture2D>: (4.3.0 - 2022.3.2f1)

§textureRect: Rectf§textureRectOffset: Vector2f§alphaTexture: Option<PPtr>

PPtr<Texture2D>: (5.2.0f2 - 2022.3.2f1)

§atlasRectOffset: Option<Vector2f>

Vector2f: (5.4.6f1 - 2022.3.2f1)

§downscaleMultiplier: Option<f32>

f32: (2017.1.0b1 - 2022.3.2f1)

§indices: Option<Vec<u16>>

Vec: (4.3.0 - 5.5.6f1)

§m_Bindpose: Option<Vec<Matrix4x4f>>

Vec: (2018.1.0b2 - 2022.3.2f1)

§m_IndexBuffer: Option<Vec<u8>>

Vec: (5.6.0b1 - 2022.3.2f1)

§m_SourceSkin: Option<Vec<BoneWeights4>>

Vec: (2018.1.0b2 - 2018.1.9f2)

§m_SubMeshes: Option<Vec<SubMesh>>

Vec: (5.6.0b1 - 2022.3.2f1)

§m_VertexData: Option<VertexData>

VertexData: (5.6.0b1 - 2022.3.2f1)

§secondaryTextures: Option<Vec<SecondarySpriteTexture>>

Vec: (2019.1.0b1 - 2022.3.2f1)

§uvTransform: Option<Vector4f>

Vector4f: (4.5.0 - 2022.3.2f1)

§vertices: Option<Vec<SpriteVertex>>

Vec: (4.3.0 - 5.5.6f1)

Trait Implementations§

Source§

impl Debug for SpriteRenderData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SpriteRenderData

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for SpriteRenderData

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,