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

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 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.

Did you find this page useful? Please give it a rating: