LightingDataAsset
The lighting data asset used by the active Scene.
Read time 4 minutesLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
- Inherits from: Object
public sealed class LightingDataAsset : Object
Remarks
Please note that modifying this value currently does not affect the Scene immediately, the lighting data is only patched into the active Scene when loading the Scene.
Constructors
Constructor | Description |
|---|---|
| LightingDataAsset(UnityEngine.SceneManagement.Scene) | Constructs an empty LightingDataAsset associated with specific scene. |
Methods
Method | Description |
|---|---|
| GetAmbientProbe | Gets the ambient probe stored in a LightingDataAsset in L2 spherical harmonic encoding. |
| GetDefaultReflectionCubemap | Gets the default reflection cubemap stored in a LightingDataAsset. |
| SetAmbientProbe | Sets the ambient probe stored in a LightingDataAsset. |
| SetDefaultReflectionCubemap | Sets the default reflection cubemap stored in a LightingDataAsset. |
| SetLights | Overwrites the Lights referenced by a LightingDataAsset. |
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. |