Documentation

Unity Engine

Download Unity

Unity Engine

bakeRealtimeEmission

Determines whether Unity includes the emission of materials that use real-time indirect emission in baked lightmaps and Light Probes.
Read time 1 minuteLast updated 8 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool bakeRealtimeEmission { get; set; }

Remarks

When you set this property to
true
, the Baked Global Illumination system treats the emission of materials that use MaterialGlobalIlluminationFlags.RealtimeIndirectEmission as baked emission.
When you set this property to
false
, the emission of these materials doesn't contribute to baked lightmaps and Light Probes. Choose
false
if a runtime Global Illumination solution uses the emission instead.
Materials that use MaterialGlobalIlluminationFlags.BakedEmission always contribute to the bake, regardless of this property.
When Unity serializes this
LightingSettings
object as a Lighting Settings Asset, this property corresponds to the Bake Realtime Emission property in the Lighting Settings Asset Inspector.