I am having difficulty animating a sprite in Unity.
I want the Sprites sprite(image) to change in a looping animation.
So far I have created a new animation and added the sprites to the animation timeline as shown in the image below.
As you can see above, I am also animating the colour of the sprite.
The GameObject looks like this:
When the scene is run, the colour component animates as expected, however the sprite does not change.
What am I doing wrong?
2
votes
If you would not get any answer then let me know, I will give you a simple script to change sprites :)
- Hamza Hasan
Check this link if problem exists.
- Hamza Hasan
@HamzaHasan Thanks for the link, trying to get this working with the built in animator though.
- Zze
It is explicitly without animator
- Hamza Hasan
it is for the side objects,
- Hamza Hasan