- Home /
Mecanim, Interrupting Transitions
I have a lot of animations that come off of the "Any State" piece in the mecanim animator, sometimes even over one another (doing an attack and then being hit into a damaged pose). Each of these animations is only called once and this creates problems because if I call an animation while there is a transition then the animation won't run at all. I can get around this by having transitions be instant but then I don't have transitions.
Is there anyway to get the mecanim system to always interrupt transitions to get these transitions from the "Any State" to work?
That can be probably achieved with animation blending trees or animation layers, $$anonymous$$ecanim has both of those ways.
I would love for a way to interrupt transitions. It would make my life a lot easier. I have a character going from a rising state to a falling state but in the transition I sometimes need to change to my land state but the transition takes too long.
Has this been figured out? Is it possible to interrupt a transition with a SetTrigger() from a 'Any State'?
Answer by castor · Nov 17, 2016 at 07:14 PM
You can interrupt ANY state (in transition or not) using Play() and CrossFade()