How to display countdown timer on widget?

By using something similar to this post you can achieve a UMG Timer : Game time - Blueprint - Unreal Engine Forums

http://puu.sh/80r5M/88ec570ed1.jpg

You want to create a float variable that you can later convert to an integer and name it Time
Subtract the default value of that you set from the ticks delta seconds and set the new time to equal that.

Then in your widget use a set text node and convert that into text.

The function at the moment is empty. I want the timer to start at five minutes and countdown until zero. I’ve been able to make a timer in the first person HUD blueprint, but have not had success casting it in the widget below. Is there an easier way?

That’s the picture I copied but I don’t know how to make it display on the widget

So instead of making it in the first person HUD blueprint, I should make it in the widget itself?


Using “set text”
Turn your text block into a variable as well

Correct handle this in the widget / UMG

To the right of where you could manually write your text in the textwidget you have bindings. Create a new one and return the remaining time float as a string.