I know this question has been asked before, but I’ve never seen a C# implementation that works. There have been two suggestions:
- change the position after you scale.
- place the sprite in an empty game object.
Since unity doesn’t tell us the size of the sprite before or after the scale, I have no clue how much to move the sprite.
Also I’ve tried placing the sprite in an empty game object both programmatically and through the Hierarchy view, neither have changed the way the scale looks. i’ve also tried scaling both the empty container and the original sprite, but nothing works. please give a working examples of how to change the X with of a sprite at one end only.