# Line break for public text variable

**URL:** <https://forums.unrealengine.com/t/line-break-for-public-text-variable/48324>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [November 24, 2015, 3:21pm UTC](https://forums.unrealengine.com/t/line-break-for-public-text-variable/48324 "2015-11-24T15:21:34Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_dfff491d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dfff491d](https://forums.unrealengine.com/u/anonymous_user_dfff491d)\
**Post date:** [November 24, 2015, 3:21pm UTC](https://forums.unrealengine.com/t/line-break-for-public-text-variable/48324/1 "2015-11-24T15:21:34Z")

</div>

Hello,  
with “Shift + Enter” i can set a new line within a blueprint-text-variable. However, when i try this outside via the public variable (under the “Details”-Window of an actor) it is not possible. Is there a possibility to set a new line there too?

![ue1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/9/f94d932672d6ff263895c1ffdbaa3002788fa0bf.jpeg)

---

<div class="post-metadata">

**Author:** ![CriErr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CriErr](https://forums.unrealengine.com/u/CriErr)\
**Post date:** [November 24, 2015, 5:01pm UTC](https://forums.unrealengine.com/t/line-break-for-public-text-variable/48324/2 "2015-11-24T17:01:45Z")

</div>

shift+enter might work

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dfff491d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dfff491d](https://forums.unrealengine.com/u/anonymous_user_dfff491d)\
**Post date:** [November 24, 2015, 7:23pm UTC](https://forums.unrealengine.com/t/line-break-for-public-text-variable/48324/3 "2015-11-24T19:23:41Z")

</div>

Nope unfortunately that will just work inside the blueprint, not on the details page.

---

<div class="post-metadata">

**Author:** ![CriErr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CriErr](https://forums.unrealengine.com/u/CriErr)\
**Post date:** [November 25, 2015, 7:19am UTC](https://forums.unrealengine.com/t/line-break-for-public-text-variable/48324/4 "2015-11-25T07:19:43Z")

</div>

> [@basenic;425751](#):
>
> Nope unfortunately that will just work inside the blueprint, not on the details page.

Make variable a text type, make something like {nextline} everywhere where you want to have line break, in the function which read the variable (constructed script mb?), read the presetup value pass it thru “format text”, add the parameter “nextline” into the details of format text and connect literal value to input which would be created for this “nextline” parameter, make the input shift+enter, not literal, just press shift+enter, which would make it contain only linebreak.

---

<div class="post-metadata">

**Author:** ![Commander\_Shepard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Commander\_Shepard](https://forums.unrealengine.com/u/Commander_Shepard)\
**Post date:** [November 25, 2015, 9:25am UTC](https://forums.unrealengine.com/t/line-break-for-public-text-variable/48324/5 "2015-11-25T09:25:10Z")

</div>

Try the following

First do a shift enter in a blueprint then select all using ctrl+A copy and paste it into your property box

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dfff491d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dfff491d](https://forums.unrealengine.com/u/anonymous_user_dfff491d)\
**Post date:** [November 25, 2015, 12:53pm UTC](https://forums.unrealengine.com/t/line-break-for-public-text-variable/48324/6 "2015-11-25T12:53:12Z")

</div>

@Commander Shepard: I tried your suggestion. It did not work, because the new-line was ignored after copy and pasting it.

@CriErr: Your solution worked (screenshot attached).

Thank you both for your help.

 ![a46284d0b7f703f7b56a4d679115012b8041ef5e.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/4/6/a46284d0b7f703f7b56a4d679115012b8041ef5e.jpeg)

---

<div class="post-metadata">

**Author:** ![CriErr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CriErr](https://forums.unrealengine.com/u/CriErr)\
**Post date:** [November 25, 2015, 1:08pm UTC](https://forums.unrealengine.com/t/line-break-for-public-text-variable/48324/7 "2015-11-25T13:08:39Z")

</div>

if you want to be able to setup variables on spawn, you can mark them as “expose on spawn”.

---

<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:** [November 25, 2015, 1:42pm UTC](https://forums.unrealengine.com/t/line-break-for-public-text-variable/48324/8 "2015-11-25T13:42:06Z")

</div>

> [@CriErr;426153](#):
>
> if you want to be able to setup variables on spawn, you can mark them as “expose on spawn”.

In addition to this: Marking as “Editable” AND “Exposed on Spawn” will make variable appear in the Create Widget node. They will  
be additional inputs and you don’t have to use the return and set the variable in and extra step. Saves room and looks nicer.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dfff491d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dfff491d](https://forums.unrealengine.com/u/anonymous_user_dfff491d)\
**Post date:** [November 27, 2015, 10:16am UTC](https://forums.unrealengine.com/t/line-break-for-public-text-variable/48324/9 "2015-11-27T10:16:43Z")

</div>

Very nice tip with “Expose on spawn”. Thank you!

---

<div class="post-metadata">

**Author:** ![Nizami\_Nz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nizami\_Nz](https://forums.unrealengine.com/u/Nizami_Nz)\
**Post date:** [June 1, 2025, 7:04pm UTC](https://forums.unrealengine.com/t/line-break-for-public-text-variable/48324/10 "2025-06-01T19:04:38Z")

</div>

![cant-enter-line-breaks-in-default-value-box-but-can-in-v0-wpkagk0rpgib1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/4/f/64f202a34ad41e93576af7adaab75e2e2c0040ac.webp)

---

<div class="post-metadata">

**Author:** ![Vollgaser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vollgaser](https://forums.unrealengine.com/u/Vollgaser)\
**Post date:** [October 23, 2026, 9:27am UTC](https://forums.unrealengine.com/t/line-break-for-public-text-variable/48324/11 "2026-10-23T09:27:26Z")

</div>

and compile immediately when checking it on, or crash.

Greetings from 2026 !
