Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Smoothing switches between multiple animations

Discussion in 'Animation' started by ranjansikand, Nov 13, 2021.

  1. ranjansikand

    ranjansikand

    Joined:
    Apr 8, 2021
    Posts:
    113
    I have a few movement states that transition into a sub-state machine that controls attack animation combos. The sub-state has an empty router state that decides where to move next, plays the animation, then transitions to a new empty animation to transition back. It works perfectly and simplified everything, but the animations don’t sync perfectly so there’s some snapping when one ends and the next begins. I had to do it this way because my character controller is a state machine, so I have to transition out of the state before re-entering a new attack— the blank state routes the transition based on the time since the last attack.

    Is there a way to smooth the transition between two animations without needing to directly transition from one to the next?

    I tried using an animation layer, and it may just be my inexperience with them, but it messed up some of my more acrobatic animations.