- Home /
Mecanim unwanted transition plays after character death
When my character stumbles on an obstacle, he dies as intended. When I revive the character, the stumble animation plays again when it should not. I am using Mecanim and the latest version of Unity: 4.3.1f1. The rig is Generic. In order, I have:
1) Run anim goes to Stumble anim using setTrigger("Stumble")
2) Stumble anim goes to deathStart anim using setTrigger("deathStart")
3) deathStart goes to deathLoop using Exit time
4) Revive button is pressed
5) Body of player is teleported to safe location
6) GetUp anim is triggered via setTrigger("GetUp")
7) GetUp anim goes to Run anim using setTrigger("Run")
8) Bug: The Stumble anim will play once when it should not. The player should just be running.
I tried using setBool instead of setTrigger, that did not help. I tried putting Stumble transitions to non-atomic, that did not help. I tried calling anim.Play("GetUp") instead of anim.SetTrigger("GetUp") and that did not help either.
Any reason why the Stumble anim would play again? It seems like a Mecanim bug, but I am not sure.
I am stumped. Please help.
Korbain
Your answer
Follow this Question
Related Questions
Triggering an animation once in mecanim 4 Answers
Mecanim won't save instant transition 1 Answer
Mecanim, Interrupting Transitions 1 Answer
Use Mecanim Transition as Trigger 0 Answers
Combining two animations to be one 0 Answers