Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

Sprite.textureRect

public Rect textureRect;

Description

Get the rectangle this Sprite uses on its Texture. Raises an exception if this Sprite is tightly packed in an atlas.