How do I make text in blueprint widget appear in viewport? I have buttons and images that show up on the viewport and some text that I have done. But when I try adding new text it does not show in the viewport

Previous text shows up but when I add new text it does not show up

You will need to show us how you’re attempting to add new text.

I drag the text onto the canvas and write High score in the context area then anchor it to the top right. Then i press compile and then start the game. I see the current amount of points they have but the high score text does not appear on the screen.

That’s why I suggested you show us.

What you’re saying makes sense, how you’re actually doing it probably does not. I could list a dozen things why this text is not showing up. And none of them may be the cause…

Show the widget and someone will try to poke holes in it.

link text

Here is the link to the screenshots.

This has little to do with text and widgets.

Here’s the thing - function binds execute every frame. If you’re playing the game at 60fps, you’re loading your game 60x every second. Does not sound right, right?

While this is exceptionally flawed and inefficient, it should work, technically. Here it does not because the cast fails (put a print string node there and see if it prints).

The cast may fail for 2 reasons here:

  • the Save Game object does not exist
  • the Save Game object is not of the type you’re casting to

Ensure the save game object does exist - how (and when) is this data created and saved?

Also, load the game once, when the widget gets constructed or when the level opens.

Yes it had to do with the save game object it was written in an incorrect way. Thank you for your help.