Documentation

Unity Engine

Download Unity

Unity Engine

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
true
, the Baked Global Illumination system includes the environment lighting, such as the sky, in baked lightmaps and Light Probes.
When you set this property to
false
, baked lightmaps and Light Probes don't contain environment lighting. Choose
false
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.
This property has no effect when LightingSettings.bakedGI is
false
.
When Unity serializes this
LightingSettings
object as a Lighting Settings Asset, this property corresponds to the Bake Environment Lighting property in the Lighting Settings Asset Inspector.