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.GetSpriteMesh

static function GetSpriteMesh(sprite: Sprite, getAtlasData: bool): Vector2[];
static Vector2[] GetSpriteMesh(Sprite sprite, bool getAtlasData);
static def GetSpriteMesh(sprite as Sprite, getAtlasData as bool) as Vector2[]

Parameters

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

Description

Returns the generated Sprite mesh positions.