LightmapEditorSettings

class in UnityEditor

/

Implemented in:UnityEditor

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

Description

Various settings for the bake.

The bake can be started via Lightmapping class.

See Also: Lightmapping.

Static Properties

aoExponentDirectAmbient occlusion (AO) for direct lighting.
aoExponentIndirectAmbient occlusion (AO) for indirect lighting.
aoMaxDistanceBeyond this distance a ray is considered to be unoccluded.
bakeResolutionSpecifies the resolution of the Baked lightmap in texels per world unit. Specifying higher resolutions can significantly increase the time it takes to bake the lightmap. The default value is one texel per world unit. The minimum value is 0.0001.
bouncesSpecifies the maximum number of bounces the lightmapper computes for indirect light. The default value is one. The range is 0 to 4.
denoiserTypeAOThe type of denoising applied to the ambient occlusion for the lightmap.
denoiserTypeDirectThe type of denoising applied to the direct light for the lightmap.
denoiserTypeIndirectThe type of denoising applied to the indirect light for the lightmap.
directSampleCountSpecifies the number of samples the Progressive lightmapper uses for direct lighting calculations. The default value is 32. The minimum value is 1.
enableAmbientOcclusionEnable baked ambient occlusion (AO).
filteringAtrousPositionSigmaAOSpecifies the threshold the Progressive lightmapper uses to filter ambient occlusion stored in the lightmap when using A-Trous filter. The default value is 1. The value range is 0 to 2.
filteringAtrousPositionSigmaDirectSpecifies the threshold the Progressive lightmapper uses to filter direct light stored in the lightmap when using A-Trous filter. The default value is 0.5. The value range is 0 to 2.
filteringAtrousPositionSigmaIndirectSpecifies the threshold the Progressive lightmapper uses to filter indirect light stored in the lightmap when using A-Trous filter. The default value is 2. The value range is 0 to 2.
filteringGaussRadiusAOSpecifies the radius the Progressive lightmapper uses to filter for ambient occlusion in the lightmap when using Gaussian filter. The default value is 2. The value range is 0 to 5.
filteringGaussRadiusDirectSpecifies the radius the Progressive lightmapper uses to filter for direct light stored in the lightmap when using Gaussian filter. The default value is one. The value range is 0 to 5.
filteringGaussRadiusIndirectSpecifies the radius the Progressive lightmapper used to filter for indirect light stored in the lightmap when using Gaussian filter. The default value is 5. The value range is 0 to 5.
filteringModeSpecifies the method used by the Progressive lightmapper to reduce noise in baked lightmaps.
filterTypeAOConfigure a filter kernel for the ambient occlusion target.
filterTypeDirectConfigure a filter kernel for the direct light target.
filterTypeIndirectConfigure a filter kernel for the indirect light target.
indirectSampleCountSpecifies the number of samples the Progressive lightmapper uses for indirect lighting calculations. The default value is 500. The minimum value is 10.
lightmapperDetermines which backend to use for baking lightmaps.
lightmapsModeNonDirectional or CombinedDirectional lightmaps rendering mode.
maxAtlasSizeThe maximum size of an individual lightmap texture.
mixedBakeModeIndicates the Mixed mode that is used to bake the LightmapBakeType.Mixed lights, irrelevant for realtime and baked lights.
paddingTexel separation between shapes.
prioritizeViewSpecifies whether the Progressive lightmapper should prioritize baking texels within the Scene view. The default value is true.
realtimeResolutionLightmap 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.
reflectionCubemapCompressionDetermines how Unity will compress baked reflection cubemap.
samplingDetermines which sampling strategy to use for baking lightmaps with the Progressive Lightmapper.
textureCompressionWhether to use texture compression on the generated lightmaps.

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