UMG Text box

Hi
I have created a save game for a high score system in my endless runner game, however i cannot figure how to display this high score in a text box in the HUD of the game. Would it be possible for someone to point me in the right direction.

Any help would be greatly appreciated.

The idea would be to just create a reference to your save game in the HUD you want to display the high score in.

Create a variable of your SaveGameClass in your HUD and when you’re spawning the HUD, pass it the reference to your SaveGame.

Then in the hud, you can use any variable stored in your save game and display them.

Hi thanks for your response however im not sure that i understand, below is where i spawn my HUD is this were the reference to the save game will be located?
https://postimg.org/image/pefqiyggr/

From what I see, you did not connect the action nodes create HUD and add to viewport (so I guess your HUD is not appearing?).

You also did not connect the cast node to any object.

I suggest you to follow tutorials that do what you’re trying to do.

I think Tesla’s tutorials and Epic’s tutorials about Blueprint are pretty good.

No my HUD does appear in game so im not sure what you mean.