# SetDelegate(RequestLightsDelegate)

> Set a delegate that converts a list of lights to a list of LightDataGI structures that are passed to the baking backends. Must be reset by calling ResetDelegate again.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Experimental.GlobalIllumination](/engine/6000.0/script-reference/unityengine/experimental/globalillumination.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static void SetDelegate(Lightmapping.RequestLightsDelegate del)
```

### Parameters

**** (\[RequestLightsDelegate]\(/engine/6000.0/script-reference/unityengine/experimental/globalillumination/lightmapping/requestlightsdelegate)):&#x20;
