Select your preferred scripting language. All code snippets will be displayed in this language.
class in UnityEditor
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
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
Various settings for the bake.
|Ambient occlusion (AO) for direct lighting.
|Ambient occlusion (AO) for indirect lighting.
|Beyond this distance a ray is considered to be unoccluded.
|Enable baked ambient occlusion (AO).
|Determines which backend to use for baking lightmaps.
|Determines the filtering kernel for the Progressive Path Tracer backend.
|Determines which sampling strategy to use for baking lightmaps with the path tracing backend.
|The maximum height of an individual lightmap texture.
|The maximum width of an individual lightmap texture.
|Texel separation between shapes.
|Lightmap resolution in texels per world unit. Defines the resolution of Realtime GI if enabled. If Baked GI is enabled, this defines the resolution used for indirect lighting. Higher resolution may take a long time to bake.
|Determines how Unity will compress baked reflection cubemap.
|Whether to use texture compression on the generated lightmaps.