I can not modify localscale while I'm playing because of the Animator.
Hi everyone,
I have seen that if you want to change transform.localscale by script it can be easy to do just writing a new vector 3 positions, but in my case, it doesn't work because I have activated an Animator to the main object (the player). I don't understand why if I uncheck the animator it works perfectly but with the animator check it doesn't work.
Know anyone why this happens? and more importantly, anyone knows a "plan b" to modify the localscale with this weird issue?? because as a quick solution I've tried to make a new gameobject child from the player and do there the Animator but it doesn't work properly.
Thanks in advance.
Answer by oberixss · Dec 12, 2017 at 09:04 AM
Wow, finally I fixed by myself searching more info online. It should be done while LateUpdate because if not can go in conflict with the Animator itself.
I suppose, thanks also for whoever has entered to read.
Your answer
Follow this Question
Related Questions
Death animation for enemy 0 Answers
Animator and code controlled bone rotations 0 Answers
Animation locks transform, even when not playing 0 Answers
Range Attack + Animation Script 0 Answers
Animator Is Not A Playable Error. 1 Answer