How can I display a variable onscreen?
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.
answered Oct 03 '14 at 04:13 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here