【Unity6】Support for garbled Japanese characters(□ is shown)

This article can be read in about 3 minutes.

PR

The purpose 

Troubleshooting Japanese character display issues in Unity’s GUI (square boxes instead of text).

Shown as ↑

PR

Solution

 Use Legacy, not TMP.

Unity provides two types of text UI: TMP (TextMeshPro) and Legacy. The problem described above occurs with TMP; however, using Legacy instead allows for correct Japanese display.

While TMP allows for displays like gradients that are impossible with Legacy, Legacy is sufficient for many GUIs. Therefore, this workaround is adequate if TMP’s features aren’t required.

Please provide the text you want me to translate. I need the Japanese text you want translated into English.

Strange example:

PR

font setting

Searching “Unity Japanese character encoding” brings up this solution:

Since the default TMP font doesn’t support Japanese characters, you need to create and configure a font that does.

Warning

Many fonts, including those featured in the article below, use the SIL Open Font License (OFL). While these fonts are free to use, license attribution is required.

TextMeshProで日本語を入力すると文字化けするのと、その解決策。|森菊馬
TextMeshProで日本語使ったら、□□になりました。 こちらに書いてある通りにやったら、日本語が表示できるようになりました。 助かりました。ありがとうございます。 箇条書きで書いておきます。 参考画像 からフォントをダウンロードして、解凍。『Assets』に『Fonts』などの適当なフォルダを作って、...
PR

Result

Here are two ways to display Japanese text in Unity.

Using the Legacy system allows Japanese characters to be displayed.

Good Point : EASY

BAD Point:

  • he font is distorted, making it highly necessary to use a different font.
  • Advanced display features are unavailable.

comment

Copied title and URL