Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: donchen on April 30, 2017, 08:01:32 AM

Title: How to input Asian character(eg. Chinese) in nGUI UIInput
Post by: donchen on April 30, 2017, 08:01:32 AM
I am using nGUI(3.9.9) UIInput to make a chat window. the UILabel attached in the UIInput supports Chinese. When I set the "Starting Value" of UIInput with Chinese, it can be showed, but if I print Chinese character in the label, the character can not be showed.

I check the UIInput.cs, seems that Input.inputstring is used to get input character, but it can only support ASCII characters. How can I modify it to support Chinese?

Title: Re: How to input Asian character(eg. Chinese) in nGUI UIInput
Post by: ArenMook on May 04, 2017, 04:35:59 PM
Characters can only show if the font actually has them. Built-in fonts that come with NGUI don't have them. You need to actually specify a font that does.