- Home /
Why does my sprite not change with animation?
Im trying to make a sprite animation. Im using an animation component and in the animation window are my keyframes with 2 identical sprites. Somehow the animation doesnt play and the sprite isnt changing. Every other property like sprite color etc works and changes. I already tried the animator component and it still doesnt work. What am i doing wrong?
Answer by Earthshine · May 24, 2021 at 01:28 PM
Add the animation to a state in an animator controller in the object's animator component.
Make a transition or transition sequence to this state from Entry state or Any State state.
Make sure that the animator starts your state and animation in the right moment. You may want to use animator parameters to achieve it. Starting the game with animator panel opened and 'maximize on play' switched off could be helpful.
If that's what you do and it still doesn't work, comment with some screenshots of the object's animator panel, object's inspector panel and the animation panel.
If that is not what you do but following my brief instruction fails to make it work, try consulting animator/animation tutorials on youtube. I've used Brackeys' video on the subject to get a grip on it some time ago and it worked just fine.
Else mark as correct and upvote.
Your answer