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

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

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