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]
  2. IntRect textureRect [@property getter]
    class Sprite
    @property
    textureRect
    (
    )

Meta