Sprite.setTexutre C# (CSharp) Method

setTexutre() public method

public setTexutre ( Texture texture, float textureWidth, float textureHeight ) : void
texture Texture
textureWidth float
textureHeight float
return void
    public void setTexutre(Texture texture, float textureWidth,float textureHeight)
    {
        _texture	= texture;
        _textureSelfRect.width = textureWidth;
        _textureSelfRect.height= textureHeight;
        updateParentBoundRect();
    }