Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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 :)