Version: Unity 6.1 (6000.1)
LanguageEnglish
  • C#

LightingSettings.lightmapResolution

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

Switch to Manual
public float lightmapResolution;

Description

Defines the number of texels to use per world unit when generating lightmaps.

The Lightmap Resolution property determines the texel density of the lightmap generated by Unity’s Baked Global Illumination system. It controls the quality of baked lighting by adjusting the resolution of the lightmap in texels per world unit. Higher values improve the visual fidelity of baked lighting, but also increase the time and system resources required to generate lightmaps, and their memory footprint. Use this property when you need precise and high-quality baked lighting for static objects in a scene.

You can monitor the Occupied texels count in the statistics area at the bottom of the Lighting window to evaluate the impact on the lightmap size.

When Unity serializes this LightingSettings object as a Lighting Settings Asset, this property corresponds to the Lightmap Resolution property in the Lighting Settings Asset Inspector.