0

I work on my project on both Mac and Windows. Some editor headers were written in Visual Studio on Windows in Chinese, and were encoded in GBK(default I guess). However they don't show properly on mac version Unity.

[Header("Header example")]
[Tooltip("Tooltip example")]

enter image description here

How to make editor to support showing GBK encoding Headers and Tooltips? Thanks!

5
  • Id guess that the default font doesnt support the lettering, perhaps change the font? Commented Sep 29 at 1:22
  • How exactly do they show up…? Commented Sep 29 at 9:28
  • On windows, without setting anything up for chinese, the tooltip renders chinese correctly with default settings in 6.2. But if I try to add the chinese lang modules and set the language in the Preferences, everything renders chinese (apart from some english only stuff) and Header still has an issue. Does your windows setup render Chinese properly in the Header attribute? That being said, there's another setting about the font where the default value is Inter, but there's another choice called System Font. Perhaps if you try to switch that and provided you have full chinese support on macOS... Commented Sep 29 at 13:44
  • Screenshot added. I don't think it's a font thing, since the same strings in UTF8 showed propperly. Commented Sep 29 at 17:12
  • Sorry, never got the notif. Perhaps check this out with Unity themselves, as in a bug report (I don't think I checked the existing bug reports if this has been reported), sounds like a bug. Commented Oct 14 at 9:12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.