TextureImporterPlatformSettings

Struct TextureImporterPlatformSettings 

Source
pub struct TextureImporterPlatformSettings {
    pub m_AllowsAlphaSplitting: bool,
    pub m_AndroidETC2FallbackOverride: i32,
    pub m_BuildTarget: String,
    pub m_CompressionQuality: i32,
    pub m_CrunchedCompression: bool,
    pub m_MaxTextureSize: i32,
    pub m_Overridden: bool,
    pub m_ResizeAlgorithm: i32,
    pub m_TextureCompression: i32,
    pub m_TextureFormat: i32,
    pub m_ForceMaximumCompressionQuality_BC6H_BC7: Option<bool>,
    pub m_IgnorePlatformSupport: Option<bool>,
}
Expand description

TextureImporterPlatformSettings is a sub class of the Unity engine since version 2017.3.0b1. Exert from Unity’s scripting documentation: Stores platform specifics settings of a TextureImporter. See Also: TextureImporter.

Fields§

§m_AllowsAlphaSplitting: bool

Allows Alpha splitting on the imported texture when needed (for example ETC1 compression for textures with transparency).

§m_AndroidETC2FallbackOverride: i32

Override for ETC2 decompression fallback on Android devices that don’t support ETC2.

§m_BuildTarget: String§m_CompressionQuality: i32

The quality of Crunch texture compression. The range is 0 through 100. A higher quality means larger textures and longer compression times.

§m_CrunchedCompression: bool

Use crunch compression when available.

§m_MaxTextureSize: i32

Maximum texture size.

§m_Overridden: bool

Set to true in order to override the Default platform parameters by those provided in the TextureImporterPlatformSettings structure.

§m_ResizeAlgorithm: i32

For Texture to be scaled down choose resize algorithm. ( Applyed only when Texture dimension is bigger than Max Size ).

§m_TextureCompression: i32

Compression of imported texture.

§m_TextureFormat: i32§m_ForceMaximumCompressionQuality_BC6H_BC7: Option<bool>

bool: (2019.2.0b1 - 2022.3.2f1)

§m_IgnorePlatformSupport: Option<bool>

Ignores platform support checks for the selected texture format. bool: (2022.2.20f1 - 2022.3.2f1)

Trait Implementations§

Source§

impl Debug for TextureImporterPlatformSettings

Source§

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

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

impl<'de> Deserialize<'de> for TextureImporterPlatformSettings

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 TextureImporterPlatformSettings

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>,