TextureScale
Introduction
When does TextureScale change Width and Height values values?
TextureScale can overwrite Scale/Width/Height values
// assuming mySprite is a valid Sprite
mySprite.TextureScale = 1f;
mySprite.Width = 10; // We'll assume this value is different than what is set by TextureScale
mySprite.Texture = SomeTexture; // This will reset the Width, overwriting the 10 valueCode Example

TextureScale and Power of Two
Animations "resetting" Scale
Last updated
Was this helpful?