Animation refuses to play

I’m wondering if anybody else has had a problem like this…

I animated a camera in unity. Got the animation playing with a script: no problems there.

Saved. Closed unity.

Came back and the animation refuses to play. I can get it to play in the animation editor, so the animation is still there. When I check:


I get “True”. But the animation isn’t playing!

This is really stressing me out right now and I don’t know how to fix it.

Oh. And I tried using “play automatically” and that doesn’t work either. So I think it’s a problem other than my scripting.

For anybody else having this problem, it seems that somehow,


got changed. Assigning 1.0 to it fixed my problem.