# GetIndices(Sprite)

> Returns a list of indices. This is the same as Sprite.triangle.

## Definition

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

```csharp
public static NativeArray<ushort> GetIndices(this Sprite sprite)
```

### Parameters

**** (\[Sprite]\(/engine/6000.5/script-reference/unityengine/sprite)):&#x20;

### Returns

| Type                                                                                      | Description                                                                                                                    |
| ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| [NativeArray\<ushort>](/engine/6000.5/script-reference/unity/collections/nativearray1.md) | A read-only list of indices indicating how the triangles are formed between the vertices. The array is marked as undisposable. |
