Texture texture
read / write

The texture that the sprite will render to screen.

If the texture is null, the sprite will be rendered as a red square marking the bounds of the sprite.

mySprite.texture = myTexture;