Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

Sprite.textureRectOffset

var textureRectOffset: Vector2;
Vector2 textureRectOffset;
textureRectOffset as Vector2

Description

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.