Hello, Anthony
I want to change the text in the game into Chinese for display. How can I operate it? I look forward to your reply.
Change language
Anthony I tried to change the English content to Chinese in Unity, but I found that only English letters or numbers can be displayed, which may be due to the problem of the character encoding set of Unity itself, but it doesn't matter. I don't want to dwell on this problem any more. Finally, thank you for your reply.
geniusyhr Hi! You can display chinese letters without problem, you just need to update the font atlas with chinese chars. Look for "text mesh pro" "chinese font atlas", it's not complicated You can create a fallback font with you own font supporting chinese, and add it to the default font used in the demo. Let me know if you have more questions, thanks!
- Edited
Hello Anthony, after such a long time, I used your plug-in again, but this time I had to solve the problem of Chinese display. I combined the methods on Google and your suggestions to use Chinese in text mesh pro character set, but errors occurred during the process. For example, when I entered Chinese in the Text input, an error occurred γThe error message is"MissingReferenceException: The variable m_leadingCharacters of TMP_Settings doesn't exist anymore.
You probably need to reassign the m_leadingCharacters variable of the 'TMP_Settings' script in the inspector.
UnityEngine.TextAsset.get_text () (at <d8e27b9b2bf34338bc0a9edd46a39109>:0)
TMPro.TMP_Settings.GetCharacters (UnityEngine.TextAsset file) (at ./Library/PackageCache/com.unity.textmeshpro@3.0.8/Scripts/Runtime/TMP_Settings.cs:495)
TMPro.TMP_Settings.LoadLinebreakingRules () (at ./Library/PackageCache/com.unity.textmeshpro@3.0.8/Scripts/Runtime/TMP_Settings.cs:482)
TMPro.TMP_Settings.get_linebreakingRules () (at ./Library/PackageCache/com.unity.textmeshpro@3.0.8/Scripts/Runtime/TMP_Settings.cs:346)
TMPro.TextMeshProUGUI.GenerateTextMesh () (at ./Library/PackageCache/com.unity.textmeshpro@3.0.8/Scripts/Runtime/TMPro_UGUI_Private.cs:3464)
TMPro.TextMeshProUGUI.OnPreRenderCanvas () (at ./Library/PackageCache/com.unity.textmeshpro@3.0.8/Scripts/Runtime/TMPro_UGUI_Private.cs:1670)
TMPro.TextMeshProUGUI.Rebuild (UnityEngine.UI.CanvasUpdate update) (at ./Library/PackageCache/com.unity.textmeshpro@3.0.8/Scripts/Runtime/TextMeshProUGUI.cs:216)
UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () (at ./Library/PackageCache/com.unity.ugui@1.0.0/Runtime/UI/Core/CanvasUpdateRegistry.cs:215)
UnityEngine.Canvas:SendWillRenderCanvases()".
Therefore, I hope to get your help. If possible, can you help me configure the display of Simplified Chinese, and then send the configured Home Designer as a Unity project to my email in the form of a compressed package. Please forgive my laziness for not trying to figure this out myself. Looking forward to hearing from you after your vacation, and finally wishing you a happy holiday.
My email is yanhuiru81@gmail.com.Thank you so much.