Hello Guest

Author Topic: Text input now works with Flash build but as ASCII numbers  (Read 3667 times)

zeusrami

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 24
    • View Profile
Text input now works with Flash build but as ASCII numbers
« on: September 02, 2014, 08:06:31 pm »
I am using tk2d UIText Input, when compiling to flash instead of letters I have ASCII number.

Do you know what is that issue?

Regards,
Ramiro

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Text input now works with Flash build but as ASCII numbers
« Reply #1 on: September 03, 2014, 12:26:26 pm »
Hi,

No, we stopped testing on flash since we realised Unity didn't really care about it. If this is on an old version I could take a look I guess, but I don't have a flash license. It might be worth checking the ListenForKeyboardTextUpdate() function in that file, specifically this line -
Code: [Select]
               
string inputStr = Input.inputString;
...
 c = inputStr[i];
...

newText += c;
                change = true;

Unity could be doing the wrong thing there. A couple debug.Logs will give you an idea of what the values are before it gets fed in.