Experimental: this API is experimental and might be changed or removed in the future.

SpriteDataAccessExtensions.GetIndices

切换到手册
public static NativeArray<ushort> GetIndices (Sprite sprite);

返回

NativeArray<ushort> 索引的只读列表,指示三角形是如何在顶点之间形成的。该数组已标记为不可处置。

描述

返回索引列表。这与 Sprite.triangle 相同。