# GetLightIndexMap(Allocator)

> If a RenderPipeline sorts or otherwise modifies the VisibleLight list, an index remap will be necessary to properly make use of per-object light lists.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Rendering](/engine/6000.6/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public NativeArray<int> GetLightIndexMap(Allocator allocator)
```

### Parameters

**** (\[Allocator]\(/engine/6000.6/script-reference/unity/collections/allocator)): The allocator to use.

### Returns

| Type                                                                                   | Description                                                                                                                                                             |
| -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [NativeArray\<int>](/engine/6000.6/script-reference/unity/collections/nativearray1.md) | Array of indices that map from [VisibleLight](/engine/6000.6/script-reference/unityengine/rendering/visiblelight.md) indices to internal per-object light list indices. |

### Remarks

Additional Resources:: [CullingResults.SetLightIndexMap](/engine/6000.6/script-reference/unityengine/rendering/cullingresults/setlightindexmap.md), [CullingResults](/engine/6000.6/script-reference/unityengine/rendering/cullingresults.md).
