Search Unity

Mixing Animation

Discussion in 'Animation' started by regie4233, Mar 5, 2019.

  1. regie4233

    regie4233

    Joined:
    Feb 14, 2019
    Posts:
    10
    Hi, I'm new to unity and I'm trying to do a 2D platformer, I used the 2d Rigging and put all the bones in place. I'm wondering if Unity can mix the animation. Like the walk animation is independent from the animation of the arms.
     
  2. Kybernetik

    Kybernetik

    Joined:
    Jan 3, 2013
    Posts:
    2,570
    If you have a walk animation and another animation that uses the arms, you can put them each on a different layer and use an Avatar Mask to determine which bones are affected by each layer. Most likely you'd want Walk on layer 0 with no mask so it affects everything and the other animation on layer 1 with a mask to only affect the upper body. Then you can just fade layer 1 in whenever you want to play an upper body animation.
     
    regie4233 likes this.
  3. regie4233

    regie4233

    Joined:
    Feb 14, 2019
    Posts:
    10
    Thanks, I will read about this and try this right away.