- Home /
Why I can't play animations in my 2D game?
I'm new in Unity and at the beginning of my adventure, I met a problem. I'm trying to play animation of my 2D character:
gameObject.animation.Play("playerRun");
But that's what I see in my console:
The AnimationClip 'playerRun' used by the Animation component 'Player' must be marked as Legacy.
With 3D models it was easy to mark animation as Legacy, but I don't know how to do it with sprite or animation selected in Project. Can you help me, Unity Magicians? ;)
Yes, I believe I can help you. I've answered a similar post so I'll redirect you there:
http://answers.unity3d.com/questions/581261/animations-suddenly-need-to-be-marked-legacy.html
Thank you very much! I saw your post yesterday, but I had the same problem with editing .anim file as Lautaro. And you told me about Force Text option. Thank you again!