Page 1 of 1

New Line in Standard Dialogue UI

Posted: Wed May 19, 2021 11:43 am
by TomsTales
Hi Guys,

basically I am "reworking" the standard dialogue UI, but text shows as one line without line break. Is there any possibility to change this?

Cheers

Re: New Line in Standard Dialogue UI

Posted: Wed May 19, 2021 1:06 pm
by Tony Li
Hi,

I don't understand. Can you share a screenshot of what it looks like, and mark how you would like it to look different?

Re: New Line in Standard Dialogue UI

Posted: Thu May 20, 2021 5:03 pm
by TomsTales
Hi, sorry, I try to better explain :)

Let's say I have an easy bark with the standard UI bark. I've changed some bits an it is looking like this - however, if I continue the line, it just goes longer and longer without a break - and I am sure I am just missing the obvious option somewhere :)

Re: New Line in Standard Dialogue UI

Posted: Thu May 20, 2021 5:32 pm
by Tony Li
Do you want to manually insert line breaks? If so, you can put them in the text, such as:

Code: Select all

I really want to know what is so important...
Is it the meaning of life?
Or do you want it to word wrap after a certain maximum width? If you want to restrict the bark to a maximum width, configure the outermost panel with a Content Size Fitter and Horizontal (or Vertical) Layout Group like this:

limitWidth1.png
limitWidth1.png (116.88 KiB) Viewed 943 times

Notice that I set the max width of the outermost panel's Rect Transform to 600 pixels.

Configure the inner panel with a Layout Group like this:

limitWidth2.png
limitWidth2.png (56.68 KiB) Viewed 943 times