Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Break line in Multiline Text Box with variable editable in Defaults properties

I've found that there is no problem to break text line in Multiline TextBox just by pressing enter in Text field in UMG Designer editor. My dialog system use text variable that is entered in Defualt properties. It's looks like that thers is no enter key allowed in this window.

What to do best now in 4.14?

Product Version: UE 4.14
more ▼

asked Apr 26 '17 at 01:04 PM in Blueprint Scripting

avatar image

Waw K.
70 14 24 33

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Have you tried pressing Shift+Enter? That usually works for multi-line text properties in the details panel.

more ▼

answered Apr 26 '17 at 01:38 PM

avatar image

Jamie Dale STAFF
7.5k 177 67 305

avatar image Waw K. Apr 26 '17 at 02:19 PM

Yes. I checked it, but with no results.

But meantime I found solution. I'm putting "@" symbol in one line text, and replace it before draw by Shift+Enter.

Thanks!alt text

avatar image Jamie Dale STAFF Apr 26 '17 at 04:02 PM

That's not fantastic from a localisation perspective since it will break live-culture switching.

How is the text variable you're editing set-up? Is it in C++, a Blueprint, or a User Defined Struct?

avatar image Waw K. Apr 26 '17 at 11:00 PM

Thank you for reply. The message come to widget from text defined in user struct. This is clear Blueprint class. The problem is that I need to fill text with details panel. I cannot find any othre way to put text with enter in Message field.alt text

Can you explain me what mean " break live-culture switching"? Is it serrious?:)

avatar image Jamie Dale STAFF Apr 26 '17 at 11:10 PM

If you edit your User Defined Struct, you should see an expansion arrow to the left of your text property. If you expand that you should see a multi-line option that you can check to allow the property to accept multi-line input in the details panel (using Shift+Enter).

For reference in case you ever want to do the same thing in C++, it's done by adding the "MultiLine" meta-data to a UPROPERTY, eg)

 UPROPERTY(EditAnywhere, Category="Stuff", meta=(MultiLine=true))
 FText Text;

Live-culture switching is the thing that lets you change your games culture on-the-fly and have your UI text update. Since you're converting text to a string, the version you pass to your UI has lost its link with the live-table so won't automatically update if the culture is changed.

uds_mltext.png (5.7 kB)
avatar image Waw K. Apr 26 '17 at 11:56 PM

It works like you said. Thank you.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question