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 |
|---|---|
| lightmaps | The array containing lightmap textures for all currently loaded scenes. |
| lightmapsMode | NonDirectional or CombinedDirectional Specular lightmaps rendering mode. |
| lightProbes | Baked Light Probe data. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |