Legacy Documentation: Version 4.6.2
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

LightmapEditorSettings

Namespace: 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

Sumbission failed

For some reason your suggested change could not be submitted. Please try again 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 Variables

aoAmount Controls how much Ambient Occlusion to blend into the Final Gather solution.
aoContrast Controls the look of the transition from black to white.
aoMaxDistance Beyond this distance a ray is considered to be unoccluded.
bounceBoost Boosts indirect light (Beast's diffuseBoost property, pow(colorComponent, (1.0 / diffuseBoost))).
bounceIntensity Indirect light intensity multiplier.
bounces Number of light bounces in the global illumination computation (with 0 meaning direct light only).
finalGatherContrastThreshold Contrast threshold between neighbouring surface points.
finalGatherGradientThreshold Controls how the irradiance gradient is used in the interpolation.
finalGatherInterpolationPoints The number of final gather points to interpolate between.
finalGatherRays Number of rays used in the final gather integrator.
lastUsedResolution Last used lightmap resolution (i.e. resolution of the lightmaps currently in the scene) in texels per world unit.
lockAtlas If enabled, Beast atlasing won't be run and lightmap indices, tiling and offset won't be modified on Mesh Renderers.
maxAtlasHeight The maximum height of an individual lightmap texture.
maxAtlasWidth The maximum width of an individual lightmap texture.
padding Texel separation between shapes.
quality Quality of the bake.
resolution Lightmap resolution in texels per world unit.
skyLightColor Sky light color.
skyLightIntensity Sky light intensity.
textureCompression Whether to use DXT1 compression on the generated lightmaps.