Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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.