Changing the text size

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
lee5lee
Posts: 3
Joined: Fri Jun 14, 2019 7:06 am

Changing the text size

Post by lee5lee »

Sorry if it was asked before, I searched forums for some time and didn't found the answer to my problem. I am very unexperienced with Unity, so I am sure that I'm doing something wrong and will be very grateful for any useful tips! ^_^

I am customizing Basic Dialogue UI and can't change the text size. I am using Tripfive font and standart Font size field isn't working for me, there is no difference in font size, no matter what I set in the field. I tried to change different parameters (Width and Height, min, flexible and preferred, Line Spacing) but none of this affects text size.
What am I doing wrong?
User avatar
Tony Li
Posts: 22152
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changing the text size

Post by Tony Li »

Hi,

Please try these steps:

1. Add an instance of the Basic Standard Dialogue UI prefab to the Dialogue Manager's Canvas.
You should now see it in the Game view. If you change the Scene view to 2D, select the Canvas in the Hierarchy, and then move the mouse cursor into the Scene view and press 'F', you can see it in the Scene view, too.

2. Assign this instance to the Dialogue Manager's Dialogue UI field. If you don't assign the instance, the Dialogue System will use the original, unchanged prefab version because that is what the Dialogue UI field is pointing to.

3. In the Hierarchy view, expand Dialogue Manager > Canvas > Basic Standard Dialogue UI > Dialogue Panel > NPC Subtitle Panel. Inspect Subtitle Text. Change the Font and Font Size. You should see it change in the Game view and/or Scene view.
lee5lee
Posts: 3
Joined: Fri Jun 14, 2019 7:06 am

Re: Changing the text size

Post by lee5lee »

Thank you for your response! ^_^

This is exactly what I did before asking.
Steps 1-2:
Image

Step 3:
Image

Changing Font Size to whatever from 0 to 300 dosn't change anyting T_T
User avatar
Tony Li
Posts: 22152
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changing the text size

Post by Tony Li »

As a test, can you try the Arial font? Does this change? Maybe there's an issue with resizing TripFive.

Is the Text element's 'Best Fit' checkbox ticked? If so, try unticking it.

If that doesn't help, please feel free to send an example project to tony (at) pixelcrushers.com. I'll be happy to take a look.
Post Reply