2
votes

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.

enter image description here

As you can see above, I am also animating the colour of the sprite.
The GameObject looks like this:

enter image description here

When the scene is run, the colour component animates as expected, however the sprite does not change.

What am I doing wrong?

1
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

1 Answers

0
votes

Try manually change colour. If you don't see effect, check your shader in material. Maybe your shader haven't property Colour. You can too try change default shader.