RenderSettings

Struct RenderSettings 

Source
pub struct RenderSettings {
Show 30 fields pub m_FlareStrength: f32, pub m_Fog: bool, pub m_FogColor: ColorRGBA, pub m_FogDensity: f32, pub m_FogMode: i32, pub m_HaloStrength: f32, pub m_HaloTexture: PPtr, pub m_LinearFogEnd: f32, pub m_LinearFogStart: f32, pub m_SkyboxMaterial: PPtr, pub m_SpotCookie: PPtr, pub m_AmbientEquatorColor: Option<ColorRGBA>, pub m_AmbientGroundColor: Option<ColorRGBA>, pub m_AmbientIntensity: Option<f32>, pub m_AmbientLight: Option<ColorRGBA>, pub m_AmbientMode: Option<i32>, pub m_AmbientProbe: Option<SphericalHarmonicsL2>, pub m_AmbientProbeInGamma: Option<SphericalHarmonicsL2>, pub m_AmbientSkyColor: Option<ColorRGBA>, pub m_CustomReflection: Option<PPtr>, pub m_DefaultReflectionMode: Option<i32>, pub m_DefaultReflectionResolution: Option<i32>, pub m_FlareFadeSpeed: Option<f32>, pub m_GeneratedSkyboxReflection: Option<PPtr>, pub m_IndirectSpecularColor: Option<ColorRGBA>, pub m_ReflectionBounces: Option<i32>, pub m_ReflectionIntensity: Option<f32>, pub m_SubtractiveShadowColor: Option<ColorRGBA>, pub m_Sun: Option<PPtr>, pub m_UseRadianceAmbientProbe: Option<bool>,
}
Expand description

RenderSettings is a class of the Unity engine since version 3.4.0. Exert from Unity’s scripting documentation: Experimental render settings features. See Also: RenderSettings.

Fields§

§m_FlareStrength: f32§m_Fog: bool§m_FogColor: ColorRGBA§m_FogDensity: f32§m_FogMode: i32§m_HaloStrength: f32§m_HaloTexture: PPtr

PPtr<Texture2D>: (3.4.0 - 2022.3.2f1)

§m_LinearFogEnd: f32§m_LinearFogStart: f32§m_SkyboxMaterial: PPtr

PPtr<Material>: (3.4.0 - 2022.3.2f1)

§m_SpotCookie: PPtr

PPtr<Texture2D>: (3.4.0 - 2022.3.2f1)

§m_AmbientEquatorColor: Option<ColorRGBA>

ColorRGBA: (5.0.0f4 - 2022.3.2f1)

§m_AmbientGroundColor: Option<ColorRGBA>

ColorRGBA: (5.0.0f4 - 2022.3.2f1)

§m_AmbientIntensity: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§m_AmbientLight: Option<ColorRGBA>

ColorRGBA: (3.4.0 - 4.7.2)

§m_AmbientMode: Option<i32>

i32: (5.0.0f4 - 2022.3.2f1)

§m_AmbientProbe: Option<SphericalHarmonicsL2>

SphericalHarmonicsL2: (5.0.0f4 - 2022.3.2f1)

§m_AmbientProbeInGamma: Option<SphericalHarmonicsL2>

SphericalHarmonicsL2: (5.0.0f4 - 5.2.5f1)

§m_AmbientSkyColor: Option<ColorRGBA>

ColorRGBA: (5.0.0f4 - 2022.3.2f1)

§m_CustomReflection: Option<PPtr>

PPtr<Cubemap>: (5.0.0f4 - 2021.1.28f1); PPtr<Texture>: (2021.2.0b1 - 2022.3.2f1)

§m_DefaultReflectionMode: Option<i32>

i32: (5.0.0f4 - 2022.3.2f1)

§m_DefaultReflectionResolution: Option<i32>

i32: (5.0.0f4 - 2022.3.2f1)

§m_FlareFadeSpeed: Option<f32>

f32: (4.3.0 - 2022.3.2f1)

§m_GeneratedSkyboxReflection: Option<PPtr>

PPtr<Cubemap>: (5.0.0f4 - 2022.3.2f1)

§m_IndirectSpecularColor: Option<ColorRGBA>

ColorRGBA: (5.4.0f3 - 2022.3.2f1)

§m_ReflectionBounces: Option<i32>

i32: (5.0.0f4 - 2022.3.2f1)

§m_ReflectionIntensity: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§m_SubtractiveShadowColor: Option<ColorRGBA>

ColorRGBA: (5.6.0f1 - 2022.3.2f1)

§m_Sun: Option<PPtr>

PPtr<Light>: (5.0.0f4 - 2022.3.2f1)

§m_UseRadianceAmbientProbe: Option<bool>

bool: (2018.1.0b2 - 2022.3.2f1)

Trait Implementations§

Source§

impl Debug for RenderSettings

Source§

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

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

impl<'de> Deserialize<'de> for RenderSettings

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 RenderSettings

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