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
impl Debug for LightmapSettings
Source§impl<'de> Deserialize<'de> for LightmapSettings
impl<'de> Deserialize<'de> for LightmapSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LightmapSettings
impl RefUnwindSafe for LightmapSettings
impl Send for LightmapSettings
impl Sync for LightmapSettings
impl Unpin for LightmapSettings
impl UnwindSafe for LightmapSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more