Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

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

SpriteUtility.GetSpriteUVs

public static Vector2[] GetSpriteUVs(Sprite sprite, bool getAtlasData);

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