Hello Guest

Author Topic: tk2dUITextInput OnChangeText on iOS not called  (Read 3893 times)

ThomasVandenberghe

  • Newbie
  • *
  • Posts: 1
    • View Profile
tk2dUITextInput OnChangeText on iOS not called
« on: June 27, 2014, 08:21:27 am »
Hello,

This is currently my code, which saves the nickname and it works on my pc. But when I run it on device, it never gets called.
usernameTxi.OnTextChange = obj => {
         PlayerPrefs.SetString("savedNickname", obj.Text);
};

I've went into the cs file and apparently the string inputStr = Input.inputString (line 278) returns ""

And would it be possible to add an option to set TouchScreenKeyboard.hideInput = false; because currently this is fixed in the source code. Is this done for a specific reason?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tk2dUITextInput OnChangeText on iOS not called
« Reply #1 on: June 27, 2014, 11:57:31 am »
Hi,

Input.inputString returns null all the time? If it did, I wouldn't expect anything to work there... does the text input work properly on device? It could also be that some thing has changed in Unity since the time this was written...

luispedrofonseca

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: tk2dUITextInput OnChangeText on iOS not called
« Reply #2 on: September 03, 2014, 03:12:20 pm »
I'm having the exact same problem. The issue is that the "OnTextChange" event is never triggered on iOS. Any solution for this?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile