# SetLights(Light[])

> Overwrites the Lights referenced by a LightingDataAsset.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public void SetLights(Light[] lights)
```

### Parameters

**** (\[Light\[]]\(/engine/6000.5/script-reference/unityengine/light)): 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](/engine/6000.5/script-reference/unityengine/light/bakingoutput.md).
