QualitySetting

Struct QualitySetting 

Source
pub struct QualitySetting {
Show 48 fields pub anisotropicTextures: i32, pub antiAliasing: i32, pub pixelLightCount: i32, pub shadowCascades: i32, pub shadowDistance: f32, pub shadowProjection: i32, pub shadowResolution: i32, pub shadows: i32, pub softParticles: bool, pub softVegetation: bool, pub vSyncCount: i32, pub asyncUploadBufferSize: Option<i32>, pub asyncUploadPersistentBuffer: Option<bool>, pub asyncUploadTimeSlice: Option<i32>, pub billboardsFaceCameraPosition: Option<bool>, pub blendWeights: Option<i32>, pub customRenderPipeline: Option<PPtr>, pub enableLODCrossFade: Option<bool>, pub globalTextureMipmapLimit: Option<i32>, pub lodBias: Option<f32>, pub maximumLODLevel: Option<i32>, pub name: Option<String>, pub particleRaycastBudget: Option<i32>, pub realtimeReflectionProbes: Option<bool>, pub resolutionScalingFixedDPIFactor: Option<f32>, pub shadowCascade2Split: Option<f32>, pub shadowCascade4Split: Option<Vector3f>, pub shadowNearPlaneOffset: Option<f32>, pub shadowmaskMode: Option<i32>, pub skinWeights: Option<i32>, pub streamingMipmapsActive: Option<bool>, pub streamingMipmapsAddAllCameras: Option<bool>, pub streamingMipmapsMaxFileIORequests: Option<i32>, pub streamingMipmapsMaxLevelReduction: Option<i32>, pub streamingMipmapsMemoryBudget: Option<f32>, pub streamingMipmapsRenderersPerFrame: Option<i32>, pub terrainBasemapDistance: Option<f32>, pub terrainBillboardStart: Option<f32>, pub terrainDetailDensityScale: Option<f32>, pub terrainDetailDistance: Option<f32>, pub terrainFadeLength: Option<f32>, pub terrainMaxTrees: Option<i32>, pub terrainPixelError: Option<f32>, pub terrainQualityOverrides: Option<i32>, pub terrainTreeDistance: Option<f32>, pub textureMipmapLimitSettings: Option<Vec<MipmapLimitSettings>>, pub textureQuality: Option<i32>, pub useLegacyDetailDistribution: Option<bool>,
}
Expand description

QualitySetting is a sub class of the Unity engine since version 3.4.0.

Fields§

§anisotropicTextures: i32§antiAliasing: i32§pixelLightCount: i32§shadowCascades: i32§shadowDistance: f32§shadowProjection: i32§shadowResolution: i32§shadows: i32§softParticles: bool§softVegetation: bool§vSyncCount: i32§asyncUploadBufferSize: Option<i32>

i32: (5.3.0f1 - 2022.3.2f1)

§asyncUploadPersistentBuffer: Option<bool>

bool: (2018.3.0f2 - 2022.3.2f1)

§asyncUploadTimeSlice: Option<i32>

i32: (5.3.0f1 - 2022.3.2f1)

§billboardsFaceCameraPosition: Option<bool>

bool: (5.0.0f4 - 2022.3.2f1)

§blendWeights: Option<i32>

i32: (3.4.0 - 2018.4.36f1)

§customRenderPipeline: Option<PPtr>

PPtr<MonoBehaviour>: (2019.3.0b1 - 2022.3.2f1)

§enableLODCrossFade: Option<bool>

bool: (2022.2.0b1 - 2022.3.2f1)

§globalTextureMipmapLimit: Option<i32>

i32: (2022.2.0f1 - 2022.3.2f1)

§lodBias: Option<f32>

f32: (3.5.0 - 2022.3.2f1)

§maximumLODLevel: Option<i32>

i32: (3.5.0 - 2022.3.2f1)

§name: Option<String>

String: (3.5.0 - 2022.3.2f1)

§particleRaycastBudget: Option<i32>

i32: (4.0.0 - 2022.3.2f1)

§realtimeReflectionProbes: Option<bool>

bool: (5.0.0f4 - 2022.3.2f1)

§resolutionScalingFixedDPIFactor: Option<f32>

f32: (2017.1.0b1 - 2022.3.2f1)

§shadowCascade2Split: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§shadowCascade4Split: Option<Vector3f>

Vector3f: (5.0.0f4 - 2022.3.2f1)

§shadowNearPlaneOffset: Option<f32>

f32: (5.2.0f2 - 2022.3.2f1)

§shadowmaskMode: Option<i32>

i32: (2017.1.0b1 - 2022.3.2f1)

§skinWeights: Option<i32>

i32: (2019.1.0b1 - 2022.3.2f1)

§streamingMipmapsActive: Option<bool>

bool: (2018.2.0b1 - 2022.3.2f1)

§streamingMipmapsAddAllCameras: Option<bool>

bool: (2018.2.0b1 - 2022.3.2f1)

§streamingMipmapsMaxFileIORequests: Option<i32>

i32: (2018.2.0b1 - 2022.3.2f1)

§streamingMipmapsMaxLevelReduction: Option<i32>

i32: (2018.2.0b1 - 2022.3.2f1)

§streamingMipmapsMemoryBudget: Option<f32>

f32: (2018.2.0b1 - 2022.3.2f1)

§streamingMipmapsRenderersPerFrame: Option<i32>

i32: (2018.2.0b1 - 2022.3.2f1)

§terrainBasemapDistance: Option<f32>

f32: (2022.2.0b1 - 2022.3.2f1)

§terrainBillboardStart: Option<f32>

f32: (2022.2.0b1 - 2022.3.2f1)

§terrainDetailDensityScale: Option<f32>

f32: (2022.2.0b1 - 2022.3.2f1)

§terrainDetailDistance: Option<f32>

f32: (2022.2.0b1 - 2022.3.2f1)

§terrainFadeLength: Option<f32>

f32: (2022.2.0b1 - 2022.3.2f1)

§terrainMaxTrees: Option<i32>

i32: (2022.2.0b1 - 2022.3.2f1)

§terrainPixelError: Option<f32>

f32: (2022.2.0b1 - 2022.3.2f1)

§terrainQualityOverrides: Option<i32>

i32: (2022.2.0b1 - 2022.3.2f1)

§terrainTreeDistance: Option<f32>

f32: (2022.2.0b1 - 2022.3.2f1)

§textureMipmapLimitSettings: Option<Vec<MipmapLimitSettings>>

Vec: (2022.2.0f1 - 2022.3.2f1)

§textureQuality: Option<i32>

i32: (3.4.0 - 2022.2.0a18)

§useLegacyDetailDistribution: Option<bool>

bool: (2022.2.0b1 - 2022.3.2f1)

Trait Implementations§

Source§

impl Debug for QualitySetting

Source§

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

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

impl<'de> Deserialize<'de> for QualitySetting

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 QualitySetting

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