New line in data table text type

how to add a new line break in a text variable inside data table row editor.

It is really takes much time to export everything to csv and back. Didn’t find the answer elsewhere.

Here is the screen where i tried shift+enter, /n, “/n” and other stuff, but couldn’t add a new line.

How do i add a new line???

2 Likes

Write the text with linebreak in notepad or excel, copy it, right click on the name of the row in the DataTable (not the textbox) and click “paste”

1 Like

A bit late but i was struggling on this until i found that there is arrow on the structure for the datatable. it contains a checkbox for multiline

7 Likes

I still didn’t find it, was using google docx to edit file manually. Could you please paste a screen or something, can’t find where is that arrow

That data table in the image has a struct where you defined it. That structure has a bunch of string variables in it and next to the variable name is an arrow. let me know if you cant find it.

https://www.google.co.uk/search?q=ue4+blueprint+struct&client=firefox-b-ab&dcr=0&source=lnms&tbm=isch&sa=X&ved=0ahUKEwj-oLf07ajYAhWqIcAKHQfFBlQQ_AUICygC&biw=1366&bih=656#imgrc=QFSjPG3YkUwe_M:

Right on the left of these string variables

1 Like

oh, so your suggestion is to use arrays instead of simple variables? I was hoping there is a way I can use simple string (No array value) and output text in a few lines. Like when I edit it in csv and type ■■■■+enter, the simple string moves to a new line and a simple string outputs text in 2 lines. There must be a way to do same inside engine… but I never figured it out.

I was actually using text instead of tring

no thats just a bad image i pulled from google.
In the picture you just supplied look at the above section. highlighted it for you

Great!
Thank you very much mate!

Worked fine but, what about changing the font size or selecting a word as bold?
Is that possible in this case with text variable inside data table row editor??

I know its an old post but had the answer I needed today :stuck_out_tongue:
Thnx for the link, ill take a look

Haha that’s necromancy on a post from 2016 ^^

To answer you : you won’t be able to change font or anything directly in the text input. However, you can use markers to perform that kind of change automatically when rendered. That is rich text, that you can use in UMG.
Here is the documentation page for more information.

Haha, a post from 2016 back from the dead to the rescue! This saved me countless hours of going off and writing my own new line recognition functions lol Cheers

Got the solution, thanks a lot

If your structure is C++, add meta = (MultiLine=“true”) to your UPROPERTY

3 Likes

This just saved me 6 years later, thanks for commenting :slight_smile: