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

Mecanim instant state switch

Discussion in 'Animation' started by cr4zy, Jul 16, 2015.

  1. cr4zy

    cr4zy

    Joined:
    Jul 14, 2015
    Posts:
    10
    Hello. How is it possible to instantly switch an animation state? The problem is, that the current animation plays to the end before I can switch from "Any State" to another state.. I hope you could understand my explanation :)
     
  2. specterdragon

    specterdragon

    Joined:
    Dec 30, 2013
    Posts:
    21
    You may want to take a look at the documentation for Animation Transitions. In the transition inspector, there's a checkbox called Has Exit Time, which "Determines whether the transition’s condition can take effect at any time, or only during the state’s exit time."
     
    theANMATOR2b and cr4zy like this.
  3. cr4zy

    cr4zy

    Joined:
    Jul 14, 2015
    Posts:
    10
    Thank You :)