[Solved] Image Color animation not refreshed

I’ve put a animation on a UI Image that changes the color (and alpha) over time. It works from the animation window but not when I start the game. I can see that the color changes in the inspector but the actual display of the image stays the same. If I pause the game and change the color manually it gets refreshed.

Is there any way to force this refresh so that the animation actually works?

Hello there,
Instead of animating the color field’s alpha use a Canvas Group. The Alpha does not mark the canvas as Dirty so it does not repaint.
Cheers,

1 Like

To add to that: If a Canvas Group isn’t feasable because of each element having its own color e.g., using Graphic.SetAllDirty() should also do the trick I’m guessing.

Works like a charm, thank you another lesson learned. :smile: