Search Unity

Multiple animations for one character?

Discussion in 'Animation' started by Ljaljevic1120, Nov 14, 2019.

  1. Ljaljevic1120

    Ljaljevic1120

    Joined:
    Jul 15, 2019
    Posts:
    85
    I'm making a 2D mobile game with only one character. This character is just a ball that constantly bounces off of walls from left to right. The user will have the option to pick different skins (designs) for the ball. The left and right bouncing mechanism is just an animation I created. When the ball hits a wall, it freezes, plays the bouncing animation, changes direction, then unfreezes.

    I have a separate bouncing animation to match every design. My question is, how can I have multiple animations for one character without making separate animation controllers for each one? I had a hard time finding help with this question online...
     
  2. Kybernetik

    Kybernetik

    Joined:
    Jan 3, 2013
    Posts:
    2,570
    Animator Override Controllers allow you to swap out the Animation Clips in an Animator Controller without changing the rest of its structure.

    Or you might be interested in Animancer (link in my signature) which allows you to skip Animator Controllers entirely and just play whatever Animation Clips you want.
     
  3. Ljaljevic1120

    Ljaljevic1120

    Joined:
    Jul 15, 2019
    Posts:
    85
    Thanks for the help, this is exactly what I needed!