Search Unity

Animation stopping imediately

Discussion in 'Animation' started by Shonysky, Apr 20, 2015.

  1. Shonysky

    Shonysky

    Joined:
    Mar 29, 2014
    Posts:
    44
    How can i make an animation, when the bool transition is off, interpolate imediately to the default state?
     
  2. relic1882

    relic1882

    Joined:
    Mar 11, 2015
    Posts:
    45
    Set your animation to "false" through code: anim.SetBool("Transition", false);
    Then make a transition arrow in your animator controller from your state of animation back to default and set its parameters to equal a false Boolean.