How does the latest version of Unity's Text (TMP) UI text display Chinese

First of all, we need to find the font material of Microsoft Yahei

Go to this directory to find the font package of Microsoft Yahei, copy and paste it under the unity project directory

How to go to the project directory, here is a very convenient way, open the project, right click in the project column to find the Show in Explorer option, click to go to the project directory

 

Paste it directly in Asset

Then go back to unity, you will find the following three things

 

Select the right button in the middle create->textmeshpro->fontasset 

Then drag the generated font directly into the Font Asset in Text (TMP), so that Chinese can be displayed

 

Guess you like

Origin blog.csdn.net/qq_52905520/article/details/125511715