0
\$\begingroup\$

I'm following this tutorial. I cannot get even simple animations to work. Here's a very simple case that was supposed to work but did not:

  1. Add an animator component to the 'player' prefab
  2. Create an animator controller and drag it to the corresponding field in the player animator component.
  3. Open the 'animator' tab (right click on animator controller -> open), and drag an animation clip. This automatically becomes the default state.
  4. Click play. Nothing happens. In the animator tab I can see a blue progress bar in the 'default' state (the only animation I dragged to the state machine). But the game screen shows no animation.

The player prefab inspector:

The player inspector

The very simple state machine

enter image description here This is driving me nuts.

\$\endgroup\$
5
  • \$\begingroup\$ I have no idea what the structure behind your animations are is, so I could be wrong, but shouldn't the "Idle" animation be activated from "Any State"? \$\endgroup\$ May 4 '16 at 18:56
  • \$\begingroup\$ Yes. But should not this work? "Go to idle upon entry and stay there" is what I thought. I will try with any state and get back \$\endgroup\$ May 4 '16 at 19:01
  • \$\begingroup\$ Tried Any State -> Idle. Did not change anything. Also, the orange transition line from Entry to Idle was put there by unity. It's enforced by default. \$\endgroup\$ May 4 '16 at 19:02
  • \$\begingroup\$ Your Avatar is not set in the Inspector. Are you setting it up elsewhere? \$\endgroup\$
    – zimspy
    May 5 '16 at 19:12
  • \$\begingroup\$ No I'm not. Is it required? The tutorial video did not mention it. I neverthless tried assigning it the included 'player' avatar. It did not help. \$\endgroup\$ May 6 '16 at 6:10
0
\$\begingroup\$

Removing the player prefab and re-adding it did the trick When I added the player again, the 'player' avatar was automatically assigned to it. I did not have to do it manually. And this 'magically' solved the issue somehow.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .