SpriteDataAccessExtensions.GetIndices

Declaration

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

Returns

NativeArray<ushort> A read-only list of indices indicating how the triangles are formed between the vertices. The array is marked as undisposable.

Description

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


Did you find this page useful? Please give it a rating: