Search Unity

Help with attack animation

Discussion in 'Animation' started by krupps, Jan 8, 2019.

  1. krupps

    krupps

    Joined:
    Oct 17, 2017
    Posts:
    159
    I have an Idle Animation state with a trigger to Attack. Idle -> Attack

    I want the attack animation to play one time then go back to Idle.

    I set a trigger from Idle -> Attack then a transition from Attack to Idle.

    But, when it plays the attack motion it stays on attack and doesn't go back. What do I need to set on the go back transition, so that it plays the animation then immediately goes back to Idle?
     
  2. krupps

    krupps

    Joined:
    Oct 17, 2017
    Posts:
    159
    This has been figured out. Thanks. It was my exit time.