Legacy Documentation: Version 2018.2 (Go to current version)
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.

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