- Home /
Scale of GameObject is reset when enable an attached Animator component
The animations inside the Animator are transform animations.
those are the steps I'm doing:
1.disable Animator component on the GameObject.
2.edit Transform values such as position and scale.
3.enable back the Animator component.
GameObject's scale is reset when Animator is enabled. If I skip step 3, scale is remain as I wish. Position is remain regardless the Animator enable.
NOTICE that it is not that I'm playing the animation, but only enable the Animator. this reset the scale of the GameObject. Is there any solution for it?
Thank you for your time
Answer by JP_Ferreira · Jan 05, 2018 at 03:03 PM
Hi @javaBroker: That is the normal behaviour. In your animator, you have to create a empty animation clip and set it as default state. And transition when you need to. Hope it helps
didn't work. also when i entered the animator, there already was an empty state as a default.
i turn each animation when needed by name reference in the script.