# Update HUD draw text at 1 second intervals

**URL:** <https://forums.unrealengine.com/t/update-hud-draw-text-at-1-second-intervals/311158>\
**Category:** UI\
**Tags:** hud, timer, unreal-engine, question, Blueprint\
**Created:** [March 16, 2015, 1:48am UTC](https://forums.unrealengine.com/t/update-hud-draw-text-at-1-second-intervals/311158 "2015-03-16T01:48:48Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmalaska](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jmalaska](https://forums.unrealengine.com/u/jmalaska)\
**Post date:** [March 16, 2015, 1:48am UTC](https://forums.unrealengine.com/t/update-hud-draw-text-at-1-second-intervals/311158/1 "2015-03-16T01:48:48Z")

</div>

In my blueprint HUD I’m trying to slow the drawing of text on screen to 1 second intervals, rather than every tick. However I’m not quite sure how to do it. Set Timer seems to be the way to go, but that’s looking for a function.

---

<div class="post-metadata">

**Author:** ![PixelTheory.TV](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PixelTheory.TV](https://forums.unrealengine.com/u/PixelTheory.TV)\
**Post date:** [March 16, 2015, 7:17pm UTC](https://forums.unrealengine.com/t/update-hud-draw-text-at-1-second-intervals/311158/2 "2015-03-16T19:17:14Z")

</div>

Try using a “Delay” of 1.0f

---

<div class="post-metadata">

**Author:** ![jmalaska](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jmalaska](https://forums.unrealengine.com/u/jmalaska)\
**Post date:** [March 18, 2015, 12:20am UTC](https://forums.unrealengine.com/t/update-hud-draw-text-at-1-second-intervals/311158/3 "2015-03-18T00:20:57Z")

</div>

Thanks for the reply. Delays don’t seem to work in the HUD Blueprint at on the Draw Text node. They work on regular Print String nodes just fine though in the same HUD Blueprint. Not sure why that is though.

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [March 18, 2015, 12:49am UTC](https://forums.unrealengine.com/t/update-hud-draw-text-at-1-second-intervals/311158/4 "2015-03-18T00:49:15Z")

</div>

Haven’t worked with the Canvas in a long time, but can’t you just create a function in the HUD blueprint that fits your needs and call the timer on it?

:X Or was it only possible to call “Draw Text” from the Main Draw node?

---

<div class="post-metadata">

**Author:** ![jmalaska](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jmalaska](https://forums.unrealengine.com/u/jmalaska)\
**Post date:** [March 18, 2015, 2:06am UTC](https://forums.unrealengine.com/t/update-hud-draw-text-at-1-second-intervals/311158/5 "2015-03-18T02:06:42Z")

</div>

Unfortunately you can’t add a delay timer to a BP HUD even inside a function ☹

---

<div class="post-metadata">

**Author:** ![PixelTheory.TV](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PixelTheory.TV](https://forums.unrealengine.com/u/PixelTheory.TV)\
**Post date:** [March 18, 2015, 2:14am UTC](https://forums.unrealengine.com/t/update-hud-draw-text-at-1-second-intervals/311158/6 "2015-03-18T02:14:19Z")

</div>

Could you not have a switching bool based on a timer via the pawns tick event?

---

<div class="post-metadata">

**Author:** ![jmalaska](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jmalaska](https://forums.unrealengine.com/u/jmalaska)\
**Post date:** [March 18, 2015, 2:44am UTC](https://forums.unrealengine.com/t/update-hud-draw-text-at-1-second-intervals/311158/7 "2015-03-18T02:44:33Z")

</div>

Possibly but I’m not that deep yet to really understand. Do you mind explaining a bit or pointing me in the right direction?

---

<div class="post-metadata">

**Author:** ![jmalaska](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jmalaska](https://forums.unrealengine.com/u/jmalaska)\
**Post date:** [March 18, 2015, 2:46am UTC](https://forums.unrealengine.com/t/update-hud-draw-text-at-1-second-intervals/311158/8 "2015-03-18T02:46:48Z")

</div>

So this seems really convoluted but I’m just getting the variable on a delay from the Player Controller instead. Then I cast from the HUD BP into the Player Controller. This doesn’t actually answer my question as to how to do it _directly_ in the HUD BP itself (either by delay node or otherwise). But it’ll do for now I guess 🙂

 ![34661-hud+bp+cast+to+player+bp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/c/f5c9fb5f5684eef32eb88ceadd471417168ae792.png)

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [March 18, 2015, 9:38am UTC](https://forums.unrealengine.com/t/update-hud-draw-text-at-1-second-intervals/311158/9 "2015-03-18T09:38:28Z")

</div>

I thought more about something like this:

Create a functioned, for exampled called “DrawMyTestString”, in your HUD Class.

Create your draw text logic here:

[http://puu.sh/gFd4m/a192cd4ffd.png](http://puu.sh/gFd4m/a192cd4ffd.png)

Now, in the Event Graph of the HUD Class, call a timer with 1.0f Second delay and “looping” ticked.  
Give this Set Timer Node the Name of the function you have created:

[http://puu.sh/gFd2Q/dfe8b49f25.png](http://puu.sh/gFd2Q/dfe8b49f25.png)

This should totaly do what you want :X

Can’t test it though, because i’m missing a font.

---

<div class="post-metadata">

**Author:** ![jmalaska](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jmalaska](https://forums.unrealengine.com/u/jmalaska)\
**Post date:** [March 18, 2015, 3:49pm UTC](https://forums.unrealengine.com/t/update-hud-draw-text-at-1-second-intervals/311158/10 "2015-03-18T15:49:05Z")

</div>

Thanks for your response!

I couldn’t get this to work. Even with doing a simplified function (Func start → Draw text). It looks like Set Timer (like Delay) doesn’t work as a HUD event. Which is really weird. Maybe the timing events just aren’t built to work with the HUD BP?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [January 12, 2016, 4:10pm UTC](https://forums.unrealengine.com/t/update-hud-draw-text-at-1-second-intervals/311158/11 "2016-01-12T16:10:08Z")

</div>

Hello

I was able to reproduce the issue with the delay and the timer. I have written up a report (UE-25253) and I have submitted it to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. I have also provide and example of one workaround that I was able to come up with. I hope that this information helps. Thank you for your time and information.

Example:

I was able to create a loop with a delay that opens and closes a gate so that the delay is not directly connected to the Event Receive Drawn HUD event which was causing an issue with drawing the texture.

 ![74068-delayworkaroundhudhelp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/e/55ec06c6fe3947dac3caec6a1396128936784b58.png)

Make it a great day

---

<div class="post-metadata">

**Author:** ![phaeton1911](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phaeton1911](https://forums.unrealengine.com/u/phaeton1911)\
**Post date:** [February 21, 2017, 1:09pm UTC](https://forums.unrealengine.com/t/update-hud-draw-text-at-1-second-intervals/311158/12 "2017-02-21T13:09:41Z")

</div>

isnt there a way of creating a material that can cycle textures on a timer, then you can load that into the hud through i widget?
