Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. On February 28th the Feedback website will shut down and be redirected to the Unity forums. See the full post for more information.
    Dismiss Notice
  5. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  6. Unity 2018.3 is now released.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Animation controller plays only default animation.

Discussion in 'Animation' started by onionface, Sep 12, 2018.

  1. onionface

    onionface

    Joined:
    Dec 25, 2012
    Posts:
    7
    Hi,

    So I've been stuck on this for a while, hoping to get some tips.
    I have an animation controller for this character's expression and would like to be able to assign a different animation to the face for each scene in the game.

    The setup: I have a 12 scene click adventure type game, each scene is a still image with some small animations, such as the character's faces - which blink and change expression from scene to scene.

    The problem: even when I attache the "happy" animation to the character inspector, it still plays the "sad" animation. It seems that unity is taking whichever animation is set to default in the animator, rather than the animation I assign in the inspector for each scene.
    This would not be such a big issue, but whatever I do in the animator ends up getting used as default in every scene.
    And if I delete an animation from the animator, Unity does not find when I try to select it from the inspector.

    So how do I make Unity use the animation assigned in the inspector?

    thanks!
     

    Attached Files:

  2. mbbmbbmm

    mbbmbbmm

    Joined:
    Dec 28, 2013
    Posts:
    58
    You are trying to mix Mecanim with the old Legacy Animation system. I think it won't work that way...
     
  3. SilentSin

    SilentSin

    Joined:
    Jan 3, 2013
    Posts:
    156
    If you want to assign animations in the inspector without the need for an AnimatorController then my Animancer plugin sounds like exactly what you're looking for.
     
  4. onionface

    onionface

    Joined:
    Dec 25, 2012
    Posts:
    7
    @mbbmbbmm thanks, I ended up just making a new controller for each animation. It might eventually get a bit messy but will solve that when it happens.

    @SilentSin cool, I'll check it out.