Version: 2021.3
LanguageEnglish
  • C#

LightingSettings.bakedGI

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual
public bool bakedGI;

Description

Whether to enable the Baked Global Illumination system for this Scene.

When this is set to true, this Scene uses the Baked Global Illumination system. This means that you are able to generate baked lightmaps, Light Probes and Reflection Probes for this Scene.

When this is set to false, this Scene does not use the Baked Global Illumination system. This means that you are unable to generate baked lightmaps and Light Probes for this Scene. At runtime, Unity will not load precomputed lighting data for this Scene, and Baked Lights and Mixed Lights will behave as real-time Lights.

When Unity serializes this LightingSettings object as a Lighting Settings Asset, this property corresponds to the Baked GI property in the Lighting Settings Asset Inspector.

Additional resources: Lighting Settings Asset, realtimeGI.