Author Topic: How to input Asian character(eg. Chinese) in nGUI UIInput  (Read 6478 times)

donchen

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
How to input Asian character(eg. Chinese) in nGUI UIInput
« 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?


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to input Asian character(eg. Chinese) in nGUI UIInput
« Reply #1 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.