Creating a Clock

Hi all,

I’m trying to make a clock in a UMG widget but I’m having problems after following a tutorial.

I’ve managed to create script that works with print strings but as soon as I attempt to use this in a UMG, it vanishes completely even though it is already casting to the viewport. Sometimes it will even show up as just zero and not numbers. The attached photo is actually part of the game instance class for the game.

Is there any easier way of doing a 24 hour clock that goes from 0900 to 2100 over a space of 15 minutes?

Cheers,
Dave.