Unity uses 3D TextMeshPro to create Chinese fonts

Insert image description here
When I was using it, a Missing Character prompt appeared. The Chinese characters were all missing. I just chose a Chinese font and it was fine.

  1. Find the native text font in C:\Windows\Fonts
    and select a font that supports Chinese
    Here I choose Microsoft Yahei

  2. Copy and paste it into the unity project\Assets\TextMesh Pro\Fonts folder (does it work if you paste it to another location? I haven’t tested it, but it should work)

  3. Find a txt file full of Chinese on the Internet, 7000 commonly used words or something like that

  4. Open the text library creation window in Window\TextMeshPro\FontAssetCreator in unity
    Insert image description here

  5. This is the parameter I used. 7000 words is a bit too much and the generation will be a bit slow.
    Insert image description here

  6. Drag when using
    Insert image description here

Guess you like

Origin blog.csdn.net/weixin_43928707/article/details/133269064