- Home /
Legacy Animation doesn't work...
Hi Everyone, I'm trying to create a legacy animation and get it to play, but it doesn't seem to want to. I have an animator running and it works great, but it's extremely inefficient, and since I have hundreds of gameobjects at a time with animators, I decided to go the animation route. Ok, now I have set up an animation and attached it to a gameobject. I've attached clips to it, but it will not play. Even when I try to play it in the editor manually (by selecting the gameobject and pressing "Play" in the animation window, I still see nothing...Any ideas? By the way, this is for a 2d game by the way, so it's sprites...
NOTE: I have already changed the animation to be Legacy (options->Debug) in the editor.
Thanks,
Answer by Bunny83 · Jul 14, 2017 at 07:52 PM
Sprite animations only work with the new animation system, unfortunately. Legacy animations clips can only animate properties of components. If you don't want to use the Animator you may want to do the sprite animation manually by exchanging the sprites in the spriterenderer.
edit
If you have trouble how to do this manually, have a look at this answer
Ahh man, really? That's really too bad because the animators are soooooo cpu-intensive. When I turn them off, my game literally goes from 30 fps to 60fps... Ok, thanks for the info, I will have to figure this out...
Thank you! It was very surprising for me since I animated a lot of things with the legacy animation component, it's more optimized to use that for UI elements than an animator, but I guess for this one I'll have to use an animator ^^;
Your answer
Follow this Question
Related Questions
Animation based on replacing sprites in sprite renderer does not work? 0 Answers
Why I can't play animations in my 2D game? 0 Answers
Can not edit Legacy Animation 1 Answer
Change sprite in a sprite renderer with an animation 0 Answers
What is the best method to display different pictures? 0 Answers