Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Sprites.DataUtility.GetSpriteIndices

public static function GetSpriteIndices(sprite: Sprite, getAtlasData: bool): ushort[];

Parameters

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

Description

Returns the generated Sprite mesh indices.