GetIndices(Sprite)
Returns a list of indices. This is the same as Sprite.triangle.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.U2D
- Assembly: UnityEngine.CoreModule
public static NativeArray<ushort> GetIndices(this Sprite sprite)
Parameters
Returns
Type | Description |
|---|---|
| NativeArray<ushort> | A read-only list of indices indicating how the triangles are formed between the vertices. The array is marked as undisposable. |