Struct LightmapSettings

Source
pub struct LightmapSettings {
    pub m_Lightmaps: Vec<LightmapData>,
    pub m_LightmapsMode: i32,
    pub m_BakedColorSpace: Option<i32>,
    pub m_EnlightenSceneMapping: Option<EnlightenSceneMapping>,
    pub m_GISettings: Option<GISettings>,
    pub m_LightProbes: Option<PPtr>,
    pub m_LightingSettings: Option<PPtr>,
    pub m_RuntimeCPUUsage: Option<i32>,
    pub m_ShadowMaskMode: Option<i32>,
    pub m_UseDualLightmapsInForward: Option<bool>,
    pub m_UseShadowmask: Option<bool>,
}
Expand description

LightmapSettings is a class of the Unity engine since version 3.4.0. Exert from Unity’s scripting documentation: Stores lightmaps of the Scene. A Scene can have several lightmaps stored in it, and Renderer components can use those lightmaps. This makes it possible to use the same material on multiple objects, while each object can refer to a different lightmap or different portion of the same lightmap.See Also: LightmapData class, Renderer.lightmapIndex

Fields§

§m_Lightmaps: Vec<LightmapData>§m_LightmapsMode: i32§m_BakedColorSpace: Option<i32>

i32: (3.5.0 - 4.7.2)

§m_EnlightenSceneMapping: Option<EnlightenSceneMapping>

EnlightenSceneMapping: (5.0.0f4 - 2022.3.2f1)

§m_GISettings: Option<GISettings>

GISettings: (5.0.0f4 - 2022.3.2f1)

§m_LightProbes: Option<PPtr>

PPtr<LightProbes>: (3.5.0 - 2022.3.2f1)

§m_LightingSettings: Option<PPtr>

PPtr<LightingSettings>: (2020.1.0b1 - 2022.3.2f1)

§m_RuntimeCPUUsage: Option<i32>

i32: (5.0.0f4 - 5.6.0b6)

§m_ShadowMaskMode: Option<i32>

i32: (5.6.0f1 - 5.6.7f1)

§m_UseDualLightmapsInForward: Option<bool>

bool: (3.4.0 - 4.7.2)

§m_UseShadowmask: Option<bool>

bool: (2017.1.0b1 - 2020.1.0a12)

Trait Implementations§

Source§

impl Debug for LightmapSettings

Source§

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

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

impl<'de> Deserialize<'de> for LightmapSettings

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 LightmapSettings

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> Same for T

Source§

type Output = T

Should always be Self
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>,