Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    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. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  4. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Animation controller plays only default animation.

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

  1. onionface


    Dec 25, 2012

    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?


    Attached Files: