# What would be the correct way to draw text ?

**URL:** <https://forums.unrealengine.com/t/what-would-be-the-correct-way-to-draw-text/276519>\
**Category:** UI\
**Tags:** hud, build1627304, unreal-engine, UE4, question\
**Created:** [March 11, 2014, 4:03am UTC](https://forums.unrealengine.com/t/what-would-be-the-correct-way-to-draw-text/276519 "2014-03-11T04:03:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ue4-archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ue4-archive](https://forums.unrealengine.com/u/ue4-archive)\
**Post date:** [March 11, 2014, 4:03am UTC](https://forums.unrealengine.com/t/what-would-be-the-correct-way-to-draw-text/276519/1 "2014-03-11T04:03:11Z")

</div>

What would be the correct way to draw text to go with an EventGraph action?

I have tried what’s shown in the image (in the EventGraph, evoking the player controller HUD) but it doesn’t make anything show up.  
I tried making a blueprint based on HUD called MyTestHUD but I don’t know how to invoke it.

Tom

 ![capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/2/f825fa25e311aa3f8425d0d99bee0588c006eb34.png)

---

<div class="post-metadata">

**Author:** ![ue4-archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ue4-archive](https://forums.unrealengine.com/u/ue4-archive)\
**Post date:** [March 11, 2014, 4:03am UTC](https://forums.unrealengine.com/t/what-would-be-the-correct-way-to-draw-text/276519/2 "2014-03-11T04:03:12Z")

</div>

I think PrintString is what you want. That will draw text on screen and in the log, and we are going to improve this to also print in the pull-down console (and improve readability). The Draw Text function you are using is only to call within the HUD, during the ReceiveDrawHUD event. In the next beta you will see that function is no longer usable in other places, to avoid confusion.

---

<div class="post-metadata">

**Author:** ![ue4-archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ue4-archive](https://forums.unrealengine.com/u/ue4-archive)\
**Post date:** [March 11, 2014, 4:03am UTC](https://forums.unrealengine.com/t/what-would-be-the-correct-way-to-draw-text/276519/3 "2014-03-11T04:03:13Z")

</div>

Hi Tom -

Where are you drawing that in the event graph? Is it off of tick? DrawText isn’t persistant across frames, so maybe it’s being drawn for a single frame and then disappearing if you’re not doing it every frame.

---

<div class="post-metadata">

**Author:** ![ue4-archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ue4-archive](https://forums.unrealengine.com/u/ue4-archive)\
**Post date:** [March 11, 2014, 4:03am UTC](https://forums.unrealengine.com/t/what-would-be-the-correct-way-to-draw-text/276519/4 "2014-03-11T04:03:13Z")

</div>

I was just chaining it off an overlap event in the scene eventgraph. I was wondering if I could see how it should be done – from tick, I’m not sure, and not sure how to make it display for a set time then stop (or maybe to persist until a key or SWF button is pressed). I was hoping someone could show a picture.
