setTexture


Description:

[ CCode ( cname = "sfSprite_setTexture" ) ]
public void setTexture (Texture texture, bool resetRect = false)

Set the texture of the sprite.

Parameters:

texture

The texture to set.

resetRect

Whether to reset the texture rectangle to the size of the new texture.