How to set game score in HUD ?

Hello , so I’ve got trouble when I try to set the score of my level to my hud , it seems like if that was only working for a print string.
I need to make a dynamic score to my hud ( the score is the number of objects taken )

So I would like to put the score ( + 20 when the player take 1 object ) on this hud , in the green square :

I hope someone could help me with that

You have to make that green square a variable and then define it by getting the number you are printing to the screen above. Most likely, you’ll need to cast from the UMG widget to the BP in the first screenshot. Then you’ll need to set how often that happens. On tick will check every frame and be expensive, then you can use timers or other tricks to just update when the number actually changes. There are tons of tutorials on YouTube on exactly this for more specific info.

@misterrider

this should be a good place to start: https://docs.unrealengine.com/latest/INT/Engine/UMG/UserGuide/index.html

then on the left look at property binding: https://docs.unrealengine.com/latest/INT/Engine/UMG/UserGuide/PropertyBinding/index.html

those should give you a good starting point to reference.