# GetReflectionProbeIndexMap(Allocator)

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

## Definition

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

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

### Parameters

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

### Returns

| Type                                                                                   | Description                                                                                                                                                                                            |
| -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [NativeArray\<int>](/engine/6000.5/script-reference/unity/collections/nativearray1.md) | Array of indices that map from [VisibleReflectionProbe](/engine/6000.5/script-reference/unityengine/rendering/visiblereflectionprobe.md) indices to internal per-object reflection probe list indices. |

### Remarks

Additional Resources:: [CullingResults.SetReflectionProbeIndexMap](/engine/6000.5/script-reference/unityengine/rendering/cullingresults/setreflectionprobeindexmap.md), [CullingResults](/engine/6000.5/script-reference/unityengine/rendering/cullingresults.md).
