LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

DataUtility

class in UnityEngine.Sprites

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.