- Home /
changing the scale of sprite changes its position center?,changing scale of 2d sprite
hello, i have an issue where i have the same explosion sprite for 2 objects of different scale and different sprite sizes, so i need to make the explosion to change scale after an event (basically make it bigger because the exploding object is bigger).
i have noticed that when the event happens, the script changes the scale of the object and the object plays the explosion animation the 0,0 coordinates for the object are switched to the top left corner from the center. why is that happening? ,
Answer by unity_n-8njDPm62vEYw · Mar 19, 2018 at 12:49 PM
nvm, i have noticed that the problem was not in the scaling but in the sprites of the explosion, the pivot was top left instead of center.
Your answer
Follow this Question
Related Questions
How to get spawners and objects come out of the spawner to scale with resolution size? 0 Answers
How scale and position of a slider being a child object works? 0 Answers
Is there a way of correctly parenting to get scales and positions of gameObjects right? 2 Answers
Weird Positioning Problem? 1 Answer