pub struct SecondarySpriteTexture {
pub name: String,
pub texture: PPtr,
}Expand description
SecondarySpriteTexture is a sub class of the Unity engine since version 2019.1.0b1. Exert from Unity’s scripting documentation: Encapsulates a Texture2D and its shader property name to give Sprite-based renderers access to a secondary texture, in addition to the main Sprite texture.
Fields§
§name: StringThe shader property name of the secondary Sprite texture. Use this name to identify and sample the texture in the shader.
texture: PPtrThe texture to be used as a secondary Sprite texture.
PPtr<Texture2D>: (2019.1.0b1 - 2022.3.2f1)
Trait Implementations§
Source§impl Debug for SecondarySpriteTexture
impl Debug for SecondarySpriteTexture
Source§impl<'de> Deserialize<'de> for SecondarySpriteTexture
impl<'de> Deserialize<'de> for SecondarySpriteTexture
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 SecondarySpriteTexture
impl RefUnwindSafe for SecondarySpriteTexture
impl Send for SecondarySpriteTexture
impl Sync for SecondarySpriteTexture
impl Unpin for SecondarySpriteTexture
impl UnwindSafe for SecondarySpriteTexture
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