bakeEnvironmentLighting
Determines whether Unity includes environment lighting in baked lightmaps and Light Probes.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public bool bakeEnvironmentLighting { get; set; }
Remarks
When you set this property to , the Baked Global Illumination system includes the environment lighting, such as the sky, in baked lightmaps and Light Probes.
trueWhen you set this property to , baked lightmaps and Light Probes don't contain environment lighting. Choose if a runtime Global Illumination solution provides the environment lighting instead. If a Scene has no Baked or Mixed Lights and no baked emission either, Unity doesn't generate lightmaps for it.
falsefalseThis property has no effect when LightingSettings.bakedGI is .
falseWhen Unity serializes this object as a Lighting Settings Asset, this property corresponds to the Bake Environment Lighting property in the Lighting Settings Asset Inspector.
LightingSettingsAdditional Resources: Lighting Settings Asset, LightingSettings.bakeRealtimeEmission.