Documentation

Unity Engine

Unity Engine

GetSpriteIndices(Sprite, bool)

Returns the generated Sprite mesh indices.
Read time 1 minuteLast updated 2 months ago

Definition

Warning
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[]