Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

Sprites.DataUtility.GetSpriteIndices

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

Parameters

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

Description

Returns the generated Sprite mesh indices.