How can I make a countdown horizontal bar?

I’m making a game that gives the player a reaction time, and I want to make a horizontal bar to give him a visual feedback on how much time he has left. How can I make a horizontal bar, that gets smaller as time goes by, and refreshes to full when the player reacts?

Thanks in advance

Hi there,

First, find or create a bar sprite. Then, create a new image component within your canvas, and set the image type to “fill.” Then, follow this API reference.

Good luck!