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.
CloseFor 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.
CloseVarious settings for the bake.
The bake can be started via Lightmapping class.
See Also: Lightmapping.
aoExponentDirect | Ambient occlusion (AO) for direct lighting. |
aoExponentIndirect | Ambient occlusion (AO) for indirect lighting. |
aoMaxDistance | Beyond this distance a ray is considered to be unoccluded. |
enableAmbientOcclusion | Enable baked ambient occlusion (AO). |
filterTypeAO | Configure a filter kernel for the ambient occlusion target. |
filterTypeDirect | Configure a filter kernel for the direct light target. |
filterTypeIndirect | Configure a filter kernel for the indirect light target. |
lightmapper | Determines which backend to use for baking lightmaps. |
maxAtlasHeight | The maximum height of an individual lightmap texture. |
maxAtlasWidth | The maximum width of an individual lightmap texture. |
padding | Texel separation between shapes. |
realtimeResolution | 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. |
reflectionCubemapCompression | Determines how Unity will compress baked reflection cubemap. |
sampling | Determines which sampling strategy to use for baking lightmaps with the Progressive Lightmapper. |
textureCompression | Whether to use texture compression on the generated lightmaps. |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information