Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

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

DataUtility

class in UnityEngine.Sprites

Description

Helper utilities for accessing Sprite data.

Static Functions

GetInnerUVInner UV's of the Sprite.
GetMinSizeMinimum width and height of the Sprite.
GetOuterUVOuter UV's of the Sprite.
GetPaddingReturn the padding on the sprite.