M
M
Maxim Kapralov2015-01-29 13:02:42
Unity
Maxim Kapralov, 2015-01-29 13:02:42

Unity3D: Why is the animation not playing?

Hello! I have a problem with animation. There is a gui element text that should change transparency at the right time, and the animation call should be from a script on another object. The Animation component hangs on this text. In the script at the start, animation is added to it and playback starts:

gameOverText.animation.AddClip(gameOverAnim, "GameOver");
gameOverText.animation.Play("GameOver");

In fact: the animation is added, but not played. What am I doing wrong? What could be the error/problem?
PS Honestly, I've already searched the entire Internet.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Kapralov, 2015-02-01
@Byrnane

Rintime color animation not working - here is the answer to my question, which I eventually found.

D
Daniil Basmanov, 2015-01-29
@BasmanovDaniil

Are there any errors in the console? The Play method will return false, if it cannot play the animation, try debugging it. Have you tried adding this animation by hand? Does she work at all?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question