This question was
closed Jul 22, 2020 at 09:54 PM by
obsidianz for the following reason:
The question is answered, right answer was accepted
Question by
obsidianz · Jul 22, 2020 at 09:27 PM ·
animationanimatorblend tree
Animator: change parameter when exiting blend tree.
My player animator has 3 blend trees: one for being idle, on for moving and one for attacking. The transition from idle to attack occurs when a bool is set to true, and it goes back to idle when the animation ends. But, as the bool is still true, the animation will go back to attack as soon as it ends.
How do I change the parameter at animation end?
Edit:
It's ironic how I've been looking for a solution for maybe half an hour and as soon as I post this I found it.
For anyone with the same problem: you just have to add a script to the blend tree and use the function OnStateExit to change the parameter.
Comment