Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Light.lightmapBakeType

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 var lightmapBakeType: LightmapBakeType;
public LightmapBakeType lightmapBakeType;

Description

This property describes what part of a light's contribution can be baked.

If this setting is LightmapBakeType.Realtime, realtime indirect GI can be precomputed, and then updated at runtime. If this setting is LightmapBakeType.Baked, this light will be baked and won't be evaluated at runtime. If this setting is LightmapBakeType.Mixed, this light will be a composition of baked and run time evaluation based on the selected Mixed Light mode in the lighting window's Settings tab.

This property is only exposed to Editor scripts. It is not exposed during Play mode.