How can I display a variable onscreen?

Hi everybody:

What I’m currently attempting to do is a create a simple HUD, which just displays one of my character’s variables on the screen while the game is running. I have an int variable, and I want its default value to be displayed when the game starts, and update on the fly as that variable changes. Right now I have this set up with print strings, but I want to have it displayed continuous, and in a single spot.

If anyone can tell me how to do this, or point me towards some more information, I’d greatly appreciate it. Thanks!

HUD blueprint should do. Create a HUD blueprint and the a Draw Text node in it. Then create a blueprint interface with an integer input > add it to your character BP and HUD BP > Now you can transfer that integer variable from your character BP to the HUD BP via that interface function and event. Setting the size and location of the text is up to you.

Hey: thanks for your help. If at all possible can you be more specific about how to make the blueprint interface get the variable value and transfer it between blueprints? I’ve been looking at the blueprint interface documentation, but it doesn’t seem to be set up for this kind of functionality, and I haven’t figured out how to translate it yet.

This tutorial should help: - YouTube

Or check out this series: - YouTube It has a HUD setup explanation as well.

If not i can post some screenshots tomorrow.

Sorry for the delayed response, but just in case anyone else has this problem, this video from the series you listed has the answer: