Version: 2023.1

Sprite.textureRectOffset

切换到手册
public Vector2 textureRectOffset ;

描述

Gets the offset of the rectangle this Sprite uses on its Texture to the original Sprite bounds. If Sprite mesh type is FullRect, offset is zero.