Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetIndices(Sprite)

Returns a list of indices. This is the same as Sprite.triangle.
Read time 1 minuteLast updated 10 days ago

Definition

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

Parameters

sprite

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.