The question is answered, right answer was accepted
Player Prefab scale automatically goes to 1 x 1 x 1 whereas I have set it to 0.48 x 0.48 x 0.48
For my 2D Platformer, I have a character which has a skeletal/bone-based animation. It's a prefab and I have set its scale to 0.48 x 0.48 x 0.48. Whenever I go in the play mode it seems fine until I move the player. Once I press the key to move its scale goes upto 1 x 1 x 1. It's weird that I have already set the scale to 0.48 x 0.48 x 0.48 in the prefab transform.
If anybody could help me in this, would really appreciate it. Thanks!
Answer by hexagonius · Mar 27, 2017 at 01:50 PM
You can do to things:
- check your code for uses of localScale, which alter the scale
- Disable the animator. If that solves it, you have animations that drive the scale.
oops! you are right. $$anonymous$$y code was manipulating the localScale to 1 x 1 x 1. Hard coded it with 0.48 x 0.48 x 0.48. Is working as expected now! Thanks!