SetLights(Light[])
Overwrites the Lights referenced by a LightingDataAsset.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public void SetLights(Light[] lights)
Parameters
The array of Lights to overwrite the LightingDataAssets storage with.
Remarks
This method can be used to change per-light data stored in the Lighting Data Asset without having to re-bake the scene. Most of this data exists in Light.bakingOutput.