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.
CloseVarious settings for the bake.
The bake can be started via Lightmapping class.
See Also: Lightmapping.
aoMaxDistance | Beyond this distance a ray is considered to be unoccluded. |
maxAtlasHeight | The maximum height of an individual lightmap texture. |
maxAtlasWidth | The maximum width of an individual lightmap texture. |
padding | Texel separation between shapes. |
reflectionCubemapCompression | Determines how Unity will compress baked reflection cubemap. |
resolution | Lightmap resolution in texels per world unit. Higher resolution may take a long time to bake. |
textureCompression | Whether to use DXT1 compression on the generated lightmaps. |