Author Topic: Symbols not supported in UIInput?  (Read 2084 times)

breakmachine

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 71
    • View Profile
Symbols not supported in UIInput?
« on: October 14, 2014, 11:24:53 AM »
I see you're setting label.supportEncoding = false in the Init function of UIInput. Is there a reason for this?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Symbols not supported in UIInput?
« Reply #1 on: October 14, 2014, 03:21:47 PM »
Because the UIInput has too many work-arounds as it is to have to worry about handling symbols as you type. That's pretty much the only reason. :)

breakmachine

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 71
    • View Profile
Re: Symbols not supported in UIInput?
« Reply #2 on: October 14, 2014, 03:56:05 PM »
I just disabled that line and it seems to work just fine on our Android devices.

We needed emojis in our game so I made a batch script that adds symbols for all emojis to a font and maps them to their respective letter in unicode. Pretty sleek :D

liversmudge

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 0
    • View Profile
Re: Symbols not supported in UIInput?
« Reply #3 on: October 26, 2014, 11:22:57 AM »
Could you copy the script here, I have a need for emoji too.

TBH I have not worked out what unicode chars to put into NGUI.

All tutorials I have found just have :) etc rather than the unicode response from an iphone.

Thanks
« Last Edit: October 26, 2014, 11:33:39 AM by liversmudge »