Version: 2023.1

Sprite.textureRect

切换到手册
public Rect textureRect ;

描述

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