Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: knguyen on July 31, 2014, 01:39:54 AM
-
Hey all,
I've implemented some custom "emoticons" (in my case they are just arrow icons pointing in the four directions). These correspond to the keys "<", ">", "{", "}" (I mapped the up and down arrows to the brackets). Everything shows up fine when I modify the label of the UIInput before hitting play.
I read another post that had said that emoticons were disabled on purpose for UIInput. However, I need/want this to work, so can I work around this? I want the users to be able to type in "<", ">" and have the correct arrow emoticon appear, and also have the ability to delete them just like regular characters.
-
You can comment out line 442 of UIInput.cs that forces label.supportEncoding to be 'false', but beware that unless your symbols are always 1 character and happen to match the width of the character, some things will be "off".