Search Unity

Interrupt Mechanim Animations

Discussion in 'Editor & General Support' started by bpritchard, Jun 20, 2013.

  1. bpritchard

    bpritchard

    Joined:
    Jan 29, 2009
    Posts:
    444
    Hey all,

    I'm setting up a number of mechanim anims and driving them w/booleans set when i need the animations to trigger. Everything works really well aside from the fact there doesn't seem to be a way (at least not obvious to me) to interrupt the currently playing animation and start the next one. I would like to immediately blend from one to the other but even just stopping one and starting the next would be fine. Is there a way to easily stop/start or blend from one to the other at any point in an animation?

    Cheers
    Bryan
     
  2. Ironic-Chef

    Ironic-Chef

    Joined:
    Mar 7, 2013
    Posts:
    12
    Hi Bryan,

    Not sure if this helps, but you can adjust the transition period in the "transition" itself - by default this is fairly loose (I think it's around 10% on either side). If you collapse the end point of the transition (by dragging the little blue arrows on the transition timeline towards the start of the animation) the transition should occur as quickly as you want.
     
  3. bpritchard

    bpritchard

    Joined:
    Jan 29, 2009
    Posts:
    444
    @Ironic

    Thanks for the info... and that does make sense. I wonder if its possible to do it dynamically at runtime? It just seems like there should be a way to say "Hey, i know i'm only 10% into idle_01 but go ahead and play run_01 w/o finishing idle_01". :)