Sprite.textureRect

The sub-rectangle of the texture that the sprite will display.

The texture rect is useful when you don't want to display the whole texture, but rather a part of it. By default, the texture rect covers the entire texture.

  1. IntRect textureRect [@property setter]
    class Sprite
    @property
    textureRect
  2. IntRect textureRect [@property getter]

Meta