Animations played in Mecanim only, not on scenes

I have sliding doors that open when the player goes onto a trigger (OnTriggerEnter). All worked well in Unity 4.X, but in Unity 5.0 the animations are played ONLY in Mecanim, not on the scene. In other words, the doors don’t move though the animations are played. I tried to remove the properties and then made an animation again. This didn’t solve the problem.

Any ideas?

Have you verified that OnTriggerEnter is not the problem? (That is, try triggering the animation via something you know is reliable - like GetButtonDown or something)

Also, is your door set to Static?

I made the Player View window small to see the animations in Mecanim. OnTriggerEnter works because when the character enter onto the door collider, Debug.Log shows a message and the sliding door animation runs. Runs but only in the Mecanim window. No move on the scene.

I can add that legacy (non-Mecanim) animations work. I have problem with Mecanim animations only.
And the Mecanim animations work in Animation Window - I see the move of the door on the Scene View too. No move in Play Mode.

My Mecanim animations started to work! What did I?

  • I unchecked Apply Root Motion in the Aniamtor (Inspector)
  • be sure that the animated object arent Static (my animations weren’t static, but when I checked to be Static, they did not work)
    Culling Mode have no influence.