Version: 2022.3
LanguageEnglish
  • C#
Method group is Obsolete
Experimental: this API is experimental and might be changed or removed in the future.

Lightmapping.extractAmbientOcclusion

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

Obsolete UnityEditor.Experimental.Lightmapping.extractAmbientOcclusion is obsolete, use LightingSettings.extractAO instead. public static bool extractAmbientOcclusion;

Description

Writes out the filtered Ambient Occlusion texture to disk when the Lighting Data Asset is created and will be located next to the other lightmaps. This only works in On Demand mode and if Ambient Occlusion is turned on. Please note that the values from the direct and indirect exposure sliders are not applied. Currently not supported by the Progressive GPU lightmapper.