Sprite.setTexutre C# (CSharp) Méthode

setTexutre() public méthode

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