# Add a new line inside a Text var

**URL:** <https://forums.unrealengine.com/t/add-a-new-line-inside-a-text-var/314990>\
**Category:** UI\
**Tags:** variables, text, unreal-engine, Blueprint, question, UMG\
**Created:** [April 14, 2015, 9:30am UTC](https://forums.unrealengine.com/t/add-a-new-line-inside-a-text-var/314990 "2015-04-14T09:30:36Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![lKaptn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lKaptn](https://forums.unrealengine.com/u/lKaptn)\
**Post date:** [June 22, 2017, 8:51am UTC](https://forums.unrealengine.com/t/add-a-new-line-inside-a-text-var/314990/21 "2017-06-22T08:51:25Z")

</div>

Hello, AlFlakky!  
I know that it may already be too late, however…

For add new line in editable text variable you will need to **enable “Multi Line”** from Text variable defaults.

To add a new line, press **Shift + Enter**.

To insert any value inside your text, add **{0}** , where _0_ is the index of the added Pin from the **FormatText** node

 ![191066-sc1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/a/2fad7c6ff25bf0b2b6f7fd922fbc865b91dea0b3.png)

![191067-sc2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/d/d0da2540f589f31b18a71ce3a03c203d2a4324da.png)

Result:

![191068-sc3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/d/e2d88a5e2c6aff03cc46a26c2a0727d991dd2164.png)

---

<div class="post-metadata">

**Author:** ![MickD777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MickD777](https://forums.unrealengine.com/u/MickD777)\
**Post date:** [November 10, 2017, 7:04pm UTC](https://forums.unrealengine.com/t/add-a-new-line-inside-a-text-var/314990/22 "2017-11-10T19:04:28Z")

</div>

You can view them in ObjectMacros.h !  
\Engine\Source\Runtime\CoreUObject\Public\UObject

---

<div class="post-metadata">

**Author:** ![Cr3ap3r1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cr3ap3r1](https://forums.unrealengine.com/u/Cr3ap3r1)\
**Post date:** [February 4, 2024, 1:53pm UTC](https://forums.unrealengine.com/t/add-a-new-line-inside-a-text-var/314990/23 "2024-02-04T13:53:39Z")

</div>

Plus 10,000 for the correct answer!

---

<div class="post-metadata">

**Author:** ![Maoci\_del\_Freak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maoci\_del\_Freak](https://forums.unrealengine.com/u/Maoci_del_Freak)\
**Post date:** [September 10, 2024, 2:17pm UTC](https://forums.unrealengine.com/t/add-a-new-line-inside-a-text-var/314990/24 "2024-09-10T14:17:00Z")

</div>

There are a few ways (workarounds) to do this as i read through this thread…  
you can use Format Text node and place text as follows {text1}(Shift+Enter){text2} and place it in a global function as New Line Function with 2 inputs 1 output

> **[New Line Format Text posted by anonymous | blueprintUE | PasteBin For Unreal...](https://blueprintue.com/blueprint/5glde2si/)**
>
> No description provided

you can also use Add New Line Function and add an “Append Text” and place in text you want to append a Shift Enter new line

> **[Add New Line posted by anonymous | blueprintUE | PasteBin For Unreal Engine](https://blueprintue.com/blueprint/e09ixyp9/)**
>
> No description provided

---

<div class="post-metadata">

**Author:** ![Arthur-st](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arthur-st/32/900209_2.png) [@Arthur-st](https://forums.unrealengine.com/u/Arthur-st)\
**Post date:** [February 6, 2025, 9:41pm UTC](https://forums.unrealengine.com/t/add-a-new-line-inside-a-text-var/314990/25 "2025-02-06T21:41:41Z")

</div>

WORK now!  
PERFECT! Simple and direct!  
Not all heroes use a cape, thank you so much.

---

<div class="post-metadata">

**Author:** ![Javad\_Rezaii](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/javad_rezaii/32/948244_2.png) [@Javad\_Rezaii](https://forums.unrealengine.com/u/Javad_Rezaii)\
**Post date:** [February 9, 2025, 5:14am UTC](https://forums.unrealengine.com/t/add-a-new-line-inside-a-text-var/314990/27 "2025-02-09T05:14:09Z")

</div>

In engine you can have multiline in the setting of your text variable here:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/6/1/a613c0fa1253316b7ff6838d1b4c80e0473ec4da.png)

[Previous page](https://forums.unrealengine.com/t/add-a-new-line-inside-a-text-var/314990.md?page=1)
