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 , the Baked Global Illumination system treats the emission of materials that use MaterialGlobalIlluminationFlags.RealtimeIndirectEmission as baked emission.
trueWhen you set this property to , the emission of these materials doesn't contribute to baked lightmaps and Light Probes. Choose if a runtime Global Illumination solution uses the emission instead.
falsefalseMaterials that use MaterialGlobalIlluminationFlags.BakedEmission always contribute to the bake, regardless of this property.
When Unity serializes this object as a Lighting Settings Asset, this property corresponds to the Bake Realtime Emission property in the Lighting Settings Asset Inspector.
LightingSettingsAdditional Resources: Lighting Settings Asset, LightingSettings.bakeEnvironmentLighting, Material.globalIlluminationFlags.