- Home /
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:
gameObject.Find("animationCam").animation.IsPlaying("Intro1");
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.
Answer by Raphaeltm · Dec 07, 2011 at 07:30 AM
For anybody else having this problem, it seems that somehow,
Time.timeScale
got changed. Assigning 1.0 to it fixed my problem.
I've converted your comment to an answer. Feel free to accept it ;)
Btw. if Time.timeScale
"got changed somehow" you probably change it somewhere... Unity usually doesn't change it itself ;)
I agree! I just don't understand how I changed it =\ I literally had it working, closed, reopened and then it wasn't working anymore :O I don't remember changing any files from outside unity, but I must have! :)
Your answer
![](https://koobas.hobune.stream/wayback/20220613061844im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Respawn script and door animation help 0 Answers
Way to have mulitple input? 1 Answer
play animation when moving,and idle animation when stand still 1 Answer
Animated Texture Offset 1 Answer