- Home /
Legacy Animation for 2D Sprites, on Unity 4.5?
What's the situation of Legacy Animations for 2D Sprites on Unity 4.5? I've tried creating a Legacy Animation for sprites, but there would be no way for it to play during the game. I've already changed it's type to '1' on Debug mode before anyone suggests this. I've tried both "Play Automatically" and disabled too. Also, trying to play it by script wouldn't bring any results. I've managed to resolve all of this by using Mecanim Animator, but it bothers me that: 1- I have to use animator for a simple prefab with only one animation, and 2- I had to create a script to access it's states since Animator is private by default (if I got this correctly?). Any help on this would be greatly appreciated. Thanks in advance.
Unfortunately I recently had the same problem. I want to be able to call my sprites animation to play rather than set states and use triggers. I wrote my own animation controller which cycles through the sprites and assigns the sprite renderer, but I look forward to seeing if there is any solution to this. I prefer Legacy animation for certain objects.
Answer by wall_e1234 · Oct 21, 2014 at 08:31 PM
Go to the animation in the project, select debug (next to the lock picture), then change the animation type to 1.
Yeah smoggach, as you can read in the question itself, this hasn't worked for me either: "I've already changed it's type to '1' on Debug mode before anyone suggests this."
I've been away from Unity since I posted this question, but I suspect this hasn't been solved yet. Anyway, I think it's a shame that they had depricated Legacy Animation for 2D Sprites.
Did you even read the full question description, wall_e? haskell specifically said
I've already changed it's type to '1' on Debug mode before anyone suggests this.
Your answer
![](https://koobas.hobune.stream/wayback/20220613154007im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Legacy animation with custom 1st keyframe value 1 Answer
Animation based on replacing sprites in sprite renderer does not work? 0 Answers
2D legacy animation. change child sprite renderer won't work 1 Answer
2D Legacy Animation: Cannot Play 0 Answers
How to Change to the Same Point in Another Animation 0 Answers