ドキュメント

Unity Engine

Unity Engine

lightmapResolution

Defines the number of texels to use per world unit when generating lightmaps.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public float lightmapResolution { get; set; }

Remarks

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.