How to Implement Adjustable Font Sizes in Text Mesh Pro with Text Styles?

Uploaded by Christina Creates Games
Share: Twitter Facebook
In this tutorial, you will learn how to offer adjustable font sizes to your players by using Text Mesh Pro. We will use Text Styles, and the Overflow: Page setting.
Have you ever thought about offering adjustable font sizes to your players, but trying to figure out how to implement it has you stumped? Offering to adjust the font size in your game is a great way to increase its accessability, so let’s have a look at how to achieve this goal.

In Text Mesh Pro, there is actually a super useful setting to use in this case: Overflow: Page. In this tutorial, we will have a look at how that works, how to utilize it, and how to offer adjustable font sizes to our players, as well.

Files on Github: http://bit.ly/3EmeMLy

#unitytutorial

-- Chapter --
00:00 The goal of this project
00:18 Overflow Method: Page
00:52 Dialogue of the scene
01:00 Scene Setup
01:25 How to divide up text into multiple text boxes by utilising the page method
03:50 Preview: Goal of the font size adjustment
04:00 Using Text Styles
05:23 Font adjustment script
09:21 Notifying the text box about the changes
10:18 The result