Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

DataUtility

class in UnityEngine.Sprites

/

Implemented in:UnityEngine.CoreModule

Description

Helper utilities for accessing Sprite data.

Static Methods

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.

Did you find this page useful? Please give it a rating: