# SetIndices(Sprite, NativeArray<ushort>)

> Set the indices for this Sprite. This is the same as Sprite.triangle.

## Definition

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

```csharp
public static void SetIndices(this Sprite sprite, NativeArray<ushort> src)
```

### Parameters

**** (\[Sprite]\(/engine/6000.6/script-reference/unityengine/sprite)): **** (\[NativeArray\<ushort>]\(/engine/6000.6/script-reference/unity/collections/nativearray1)): The list of indices for this Sprite. The array must be disposed of by the caller.
