Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


LightmapSettings

Stores lightmaps of the Scene.
Read time 3 minutesLast updated 2 days ago

Definition

  • Type: Class
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
  • Inherits from: Object
public sealed class LightmapSettings : Object

Remarks

A Scene can have several lightmaps stored in it, and Renderer components can use those lightmaps. This makes it possible to use the same material on multiple objects, while each object can refer to a different lightmap or different portion of the same lightmap.
Additional Resources: LightmapData class, Renderer.lightmapIndex

Static Properties

Property

Description

lightmapsThe array containing lightmap textures for all currently loaded scenes.
lightmapsModeNonDirectional or CombinedDirectional Specular lightmaps rendering mode.
lightProbesBaked Light Probe data.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.