GraphicsSettings

Struct GraphicsSettings 

Source
pub struct GraphicsSettings {
Show 34 fields pub m_AlwaysIncludedShaders: Vec<PPtr>, pub m_AllowEnlightenSupportForUpgradedProject: Option<bool>, pub m_CameraRelativeLightCulling: Option<bool>, pub m_CameraRelativeShadowCulling: Option<bool>, pub m_CustomRenderPipeline: Option<PPtr>, pub m_DefaultRenderingLayerMask: Option<u32>, pub m_Deferred: Option<BuiltinShaderSettings>, pub m_DeferredReflections: Option<BuiltinShaderSettings>, pub m_DepthNormals: Option<BuiltinShaderSettings>, pub m_LegacyDeferred: Option<BuiltinShaderSettings>, pub m_LensFlare: Option<BuiltinShaderSettings>, pub m_LightHalo: Option<BuiltinShaderSettings>, pub m_LightProbeOutsideHullStrategy: Option<i32>, pub m_LightsUseCCT: Option<bool>, pub m_LightsUseColorTemperature: Option<bool>, pub m_LightsUseLinearIntensity: Option<bool>, pub m_LogWhenShaderIsCompiled: Option<bool>, pub m_MotionVectors: Option<BuiltinShaderSettings>, pub m_PreloadShadersBatchTimeLimit: Option<i32>, pub m_PreloadedShaders: Option<Vec<PPtr>>, pub m_SRPDefaultSettings: Option<Vec<(String, PPtr)>>, pub m_ScreenSpaceShadows: Option<BuiltinShaderSettings>, pub m_ShaderDefinesPerShaderCompiler: Option<Vec<PlatformShaderDefines>>, pub m_ShaderSettings: Option<PlatformShaderSettings>, pub m_ShaderSettings_Tier1: Option<PlatformShaderSettings>, pub m_ShaderSettings_Tier2: Option<PlatformShaderSettings>, pub m_ShaderSettings_Tier3: Option<PlatformShaderSettings>, pub m_SpritesDefaultMaterial: Option<PPtr>, pub m_TierSettings_Tier1: Option<TierGraphicsSettings>, pub m_TierSettings_Tier2: Option<TierGraphicsSettings>, pub m_TierSettings_Tier3: Option<TierGraphicsSettings>, pub m_TransparencySortAxis: Option<Vector3f>, pub m_TransparencySortMode: Option<i32>, pub m_VideoShadersIncludeMode: Option<i32>,
}
Expand description

GraphicsSettings is a class of the Unity engine since version 4.2.0. Exert from Unity’s scripting documentation: Script interface for Graphics Settings.

Fields§

§m_AlwaysIncludedShaders: Vec<PPtr>

Vec<PPtr<Shader>>: (4.2.0 - 2022.3.2f1)

§m_AllowEnlightenSupportForUpgradedProject: Option<bool>

bool: (2019.3.0b1 - 2020.1.0a7)

§m_CameraRelativeLightCulling: Option<bool>

bool: (2020.3.45f1 - 2022.3.2f1)

§m_CameraRelativeShadowCulling: Option<bool>

bool: (2020.3.45f1 - 2022.3.2f1)

§m_CustomRenderPipeline: Option<PPtr>

PPtr<MonoBehaviour>: (5.6.0f1 - 2022.3.2f1)

§m_DefaultRenderingLayerMask: Option<u32>

u32: (2020.2.0b1 - 2022.3.2f1)

§m_Deferred: Option<BuiltinShaderSettings>

BuiltinShaderSettings: (5.0.0f4 - 2022.3.2f1)

§m_DeferredReflections: Option<BuiltinShaderSettings>

BuiltinShaderSettings: (5.2.0f2 - 2022.3.2f1)

§m_DepthNormals: Option<BuiltinShaderSettings>

BuiltinShaderSettings: (5.4.0f3 - 2022.3.2f1)

§m_LegacyDeferred: Option<BuiltinShaderSettings>

BuiltinShaderSettings: (5.0.0f4 - 2022.1.24f1)

§m_LensFlare: Option<BuiltinShaderSettings>

BuiltinShaderSettings: (5.4.0f3 - 2022.3.2f1)

§m_LightHalo: Option<BuiltinShaderSettings>

BuiltinShaderSettings: (5.4.0f3 - 2022.3.2f1)

§m_LightProbeOutsideHullStrategy: Option<i32>

i32: (2022.2.0b1 - 2022.3.2f1)

§m_LightsUseCCT: Option<bool>

bool: (5.6.0b1 - 5.6.0b9)

§m_LightsUseColorTemperature: Option<bool>

bool: (5.6.0f1 - 2022.3.2f1)

§m_LightsUseLinearIntensity: Option<bool>

bool: (5.6.0b1 - 2022.3.2f1)

§m_LogWhenShaderIsCompiled: Option<bool>

bool: (2018.4.6f1 - 2022.3.2f1)

§m_MotionVectors: Option<BuiltinShaderSettings>

BuiltinShaderSettings: (5.4.0f3 - 2022.3.2f1)

§m_PreloadShadersBatchTimeLimit: Option<i32>

i32: (2021.2.0b1 - 2022.3.2f1)

§m_PreloadedShaders: Option<Vec<PPtr>>

Vec<PPtr<ShaderVariantCollection>>: (5.0.0f4 - 2022.3.2f1)

§m_SRPDefaultSettings: Option<Vec<(String, PPtr)>>

Vec<(String, PPtr<[Object]>)>: (2021.2.0b1 - 2022.3.2f1)

§m_ScreenSpaceShadows: Option<BuiltinShaderSettings>

BuiltinShaderSettings: (5.4.0f3 - 2022.3.2f1)

§m_ShaderDefinesPerShaderCompiler: Option<Vec<PlatformShaderDefines>>

Vec: (2017.1.0b2 - 2022.3.2f1)

§m_ShaderSettings: Option<PlatformShaderSettings>

PlatformShaderSettings: (5.3.0f1 - 5.3.8f2)

§m_ShaderSettings_Tier1: Option<PlatformShaderSettings>

PlatformShaderSettings: (5.4.0f3 - 5.4.6f3)

§m_ShaderSettings_Tier2: Option<PlatformShaderSettings>

PlatformShaderSettings: (5.4.0f3 - 5.4.6f3)

§m_ShaderSettings_Tier3: Option<PlatformShaderSettings>

PlatformShaderSettings: (5.4.0f3 - 5.4.6f3)

§m_SpritesDefaultMaterial: Option<PPtr>

PPtr<Material>: (5.4.0f3 - 2022.3.2f1)

§m_TierSettings_Tier1: Option<TierGraphicsSettings>

TierGraphicsSettings: (5.5.0f3 - 2022.3.2f1)

§m_TierSettings_Tier2: Option<TierGraphicsSettings>

TierGraphicsSettings: (5.5.0f3 - 2022.3.2f1)

§m_TierSettings_Tier3: Option<TierGraphicsSettings>

TierGraphicsSettings: (5.5.0f3 - 2022.3.2f1)

§m_TransparencySortAxis: Option<Vector3f>

Vector3f: (5.6.0b1 - 2022.3.2f1)

§m_TransparencySortMode: Option<i32>

i32: (5.6.0b1 - 2022.3.2f1)

§m_VideoShadersIncludeMode: Option<i32>

i32: (2020.1.0b1 - 2022.3.2f1)

Trait Implementations§

Source§

impl Debug for GraphicsSettings

Source§

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

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

impl<'de> Deserialize<'de> for GraphicsSettings

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 GraphicsSettings

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