I can’t seem to add a line break to a Text Variable within a data table. Shift+Enter does nothing. /n does nothing.
HTML style br tags do nothing. Normally Shift+Enter works, but this does not. I even tried copying directly from a .txt file with line breaks, it just ignores them.
Is this intended behavior? Is there some kind of code like /n I can type in that will line break Text var within a data table (within a struct)?
Shift+Enter causes a line break for me. What steps are you taking to reproduce this on your end? I’ve attached images of what I set up and what I’m seeing on my end using Shift+Enter to add line breaks, are you seeing a different result?
Thank you for submitting a bug report. I have reproduced this issue and logged a report for it here. You can track the report’s status as the issue is reviewed by our development staff.
This is just caused by the “Multi Line” meta setting on FText defaulting to false. You can now tick the “Multi-Line Text” option in the struct definition to fix the problem.
If you’re running into the same issue in CPP define the FText in your struct with Mult-line as true, you can add line-breaks in the details view.
For example:
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "idk", meta = (MultiLine = true))
Thanks MugenCity. Your comment has saved me a lot of frustration.
Solved for me as follows:
“This is just caused by the “Multi Line” meta setting on FText defaulting to false. You can now tick the “Multi-Line Text” option in the struct definition to fix the problem.”