Answer the question
In order to leave comments, you need to log in
2D character animation not working in Unity. Why?
I'm making a 2D game on Unity 5.6. Faced a problem - the animation does not work. I use Animation and did everything right: installed Legacy, etc. I call the animation in the code like this:
if (Input.GetKeyDown (KeyCode.Space)) {
GetComponent<Animation>().Play ("my_animation_name");
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question