New Line in Standard Dialogue UI

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
TomsTales
Posts: 16
Joined: Tue Apr 27, 2021 6:38 am

New Line in Standard Dialogue UI

Post 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
User avatar
Tony Li
Posts: 21050
Joined: Thu Jul 18, 2013 1:27 pm

Re: New Line in Standard Dialogue UI

Post 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?
TomsTales
Posts: 16
Joined: Tue Apr 27, 2021 6:38 am

Re: New Line in Standard Dialogue UI

Post 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 :)
Attachments
desk.JPG
desk.JPG (17.26 KiB) Viewed 832 times
User avatar
Tony Li
Posts: 21050
Joined: Thu Jul 18, 2013 1:27 pm

Re: New Line in Standard Dialogue UI

Post 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 831 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 831 times
Post Reply