文档

Unity Engine

Unity Engine

GetSpriteIndices(Sprite, bool)

Returns the generated Sprite mesh indices.
阅读时间1 分钟最后更新于 2 小时前

Definition

警告
Deprecated. Use Sprite.triangles API instead. This data is the same for packed and unpacked sprites.
public static ushort[] GetSpriteIndices(Sprite sprite, bool getAtlasData)

Parameters

sprite

If Sprite is packed, it is possible to access data as if it was on the atlas texture.

getAtlasData

Returns

Type

Description

ushort[]