# Blueprint: DrawText, Append, newline(\\n)

**URL:** <https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [August 3, 2014, 6:09pm UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022 "2014-08-03T18:09:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [August 3, 2014, 6:09pm UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/1 "2014-08-03T18:09:14Z")

</div>

Regarding this:

> **[HUD:DrawText, Newlines \\n no longer cause a return, get box instead,...](https://forums.unrealengine.com/questions/3106/huddrawtext-newlines-n-no-longer-cause-a-return-ge.html)**
>
> Dear Friends at Epic, #Bug In Beta4, using draw text on a string like “Joy\\nJoy\\nJoy\\n” would result in Joy Joy Joy #Video For Reference You can see in this video how my exact same code behaves now in Beta5 vs in Beta4 ~~~ In Beta5, the...

I’m not sure if newlines previously worked or whether he is referring to C++ and not Blueprint.

Is it (will it be) possible to append a newline to a string for multi-line textual display using DrawText?

Adding \n or even \< b r \>  
to the Append node has no effect.

---

<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:** [August 3, 2014, 8:00pm UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/2 "2014-08-03T20:00:08Z")

</div>

To be honest, i can’t answer your question directly. BUT i know, that the InfoTextBoxes (or what ever they are called) in the content\_examples are using multiple lines. If i remember correctly, they are doing it with an array.

I also read something about multiline from slate, that is coming in 4.4. But i did not understand if its a BP feature, a c++/slate feature or an Editor feature.

Maybe someone else can provide more information. Thats all i got so far (:

---

<div class="post-metadata">

**Author:** ![csharp1024](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@csharp1024](https://forums.unrealengine.com/u/csharp1024)\
**Post date:** [August 3, 2014, 9:14pm UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/3 "2014-08-03T21:14:22Z")

</div>

You can put newlines in text render components by using \<br\> Not sure if it works for DrawText, but I would imagine so.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [August 7, 2014, 5:33pm UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/4 "2014-08-07T17:33:57Z")

</div>

Can someone on the UE support-team comment?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [August 29, 2014, 7:19pm UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/5 "2014-08-29T19:19:17Z")

</div>

Hi everyone,

Try a setup like this:

 ![14138-multiline_hud_hack.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/f/f/bfff37929ec97aa6331b20ff1ca499d3e8b1e916.png)

One of our development staff, Lauren, put this together. Until we have a more viable solution this should help get multi lines on your HUD.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [August 30, 2014, 2:16pm UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/6 "2014-08-30T14:16:36Z")

</div>

Thanks /Lauren.

That works, and will use as an interim workaround

---

<div class="post-metadata">

**Author:** ![MulleDK19](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MulleDK19](https://forums.unrealengine.com/u/MulleDK19)\
**Post date:** [November 10, 2014, 12:17pm UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/7 "2014-11-10T12:17:49Z")

</div>

The only workaround I found to add newlines in BP, is by making a new variable. You can write an actual new line in its default value (Press enter), then use the variable.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [November 10, 2014, 1:20pm UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/8 "2014-11-10T13:20:44Z")

</div>

Good call !  
A very simple solution.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [January 28, 2015, 9:44am UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/9 "2015-01-28T09:44:31Z")

</div>

This was a great and simple solution in 4.5.  
However, the newline method no longer works in 4.6

Staff, why was this capability removed?

It was a much simpler alternative to building an array of text, looping through the array and having to check the text height for display …just for a line break ☹

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [January 28, 2015, 8:53pm UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/10 "2015-01-28T20:53:53Z")

</div>

Hi ,

I just tested this and it seems to be working on my end, are you using a Receive Draw HUD event?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [January 29, 2015, 5:54am UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/11 "2015-01-29T05:54:42Z")

</div>

Hi ,

I am using a HUD but not sure what you mean by “using a Receive Draw HUD event”.

Basically,  
If I run UE4.5 and create a string variable in a HUD I can add a newline character to its default value by pressing ENTER (the editbox expands to confirm the invisible newline character is there).

If I do the same thing in UE4.6 then pressing ENTER does nothing.

When you say it works for you - what procedure are you following and in what version of UE?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [January 29, 2015, 4:55pm UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/12 "2015-01-29T16:55:33Z")

</div>

Hi ,

the specific node I am referring to is in the image above. It is an event called “event receive draw HUD”. I tried the exact setup in the image above in 4.6.1 and in 4.7 preview 4 and both seemed to work as intended.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [January 29, 2015, 5:29pm UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/13 "2015-01-29T17:29:32Z")

</div>

Ok, wires are definitely crossed 🙂

That ForLoop setup is the workaround suggested by /Lauren and works perfectly fine as you pointed out, however that setup is not what I am referring to.  
had a much _much_ simpler solution of using a newline character in a string variable. This is what has stopped working in 4.6 (see his comment above mine and yours in this same thread).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [January 29, 2015, 5:57pm UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/14 "2015-01-29T17:57:24Z")

</div>

Ah I see, That was my mistake! I was very confused when you said that it didn’t work and I thought you were specifically referring to the workaround I provided. Thank you for the clarification!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [January 29, 2015, 6:18pm UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/15 "2015-01-29T18:18:57Z")

</div>

No problem.

Can you find out from the devs why the feature was removed and if it will be back in another form in 4.7?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [February 2, 2015, 6:22pm UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/16 "2015-02-02T18:22:58Z")

</div>

Hi ,

We have an internal discussion going on adding the feature for multi line functionality into text and strings. I don’t have a timeframe of when this will be made available, however it is being looked at by the development staff for future re-release.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [February 3, 2015, 2:10am UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/17 "2015-02-03T02:10:50Z")

</div>

Ok, thanks .

It’s a pity you can’t simply reinstate what was already there and working fine in 4.5, i.e. just press ENTER as the default value for a string variable.  
That was basically ‘_multiline functionality_’ wherever you appended that newline variable.

Anyway, I have my workaround:

(1) In **4.5!** create a HUD called BP\_newline with a string variable called _newline_. The default value for this string variable is a newline character (press ENTER).

(2) Import BP\_newline into my 4.6+ project, cast to access the _newline_ variable (copy it to a local string variable if desired) and use it just like before.

It (at least) gets me back to 's simple _append newline variable_ solution.

---

<div class="post-metadata">

**Author:** ![MulleDK19](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MulleDK19](https://forums.unrealengine.com/u/MulleDK19)\
**Post date:** [February 3, 2015, 3:19am UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/18 "2015-02-03T03:19:09Z")

</div>

's a work-around for 4.7.

Add a new “Make Literal String” node. Put anything in the “Value” input.

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/7/d3784e2cc31159ecf0d25c56570930ecf1052cca.png)  
Then select the node, and copy it (Either right click the node and select “Copy”, or press Ctrl+C).  
Now open up any plain text editor (Notepad, Notepad++, etc.) and paste.

Then locate the random text you wrote.

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/9/1d9ab14497f3d9a464241943ce8e319055b8f904.png)  
Change that value to “\n”:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/7/297b726e88e4d93b1819d36e548d53d0ba5b9c85.png)  
Now copy the whole text, and paste it into your blueprint.  
You now have a “Make Literal String” node containing a new line.

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/5/d/45dab700f71c7eb0c6d2b0581e86b038bdebc681.png)  
Furthermore, if you want it to be a variable instead, after doing the above, right click the “Value” input pin and click “Promote to variable”, then compile the blueprint. This will create a new variable in the blueprint with a new line.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [February 3, 2015, 8:35am UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/19 "2015-02-03T08:35:41Z")

</div>

Excellent post , yet another simple solution!

(I had no idea that could be done with blueprint.)

If didn’t know better I would think you were one of the ‘’ dev staff 😉

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9f47de28](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9f47de28](https://forums.unrealengine.com/u/anonymous_user_9f47de28)\
**Post date:** [February 4, 2015, 12:43am UTC](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022/20 "2015-02-04T00:43:29Z")

</div>

You actually don’t need a make literal string node. You can also do this method with Build String’s suffix input. Not sure, but it may work with any string input on any node. I didn’t try it until I saw 's post , but it does work with different nodes.

[Next page](https://forums.unrealengine.com/t/blueprint-drawtext-append-newline-n/290022.md?page=2)
