2D Toolkit Forum

2D Toolkit => Support => Topic started by: ThomasVandenberghe on June 27, 2014, 08:21:27 am

Title: tk2dUITextInput OnChangeText on iOS not called
Post by: ThomasVandenberghe 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?
Title: Re: tk2dUITextInput OnChangeText on iOS not called
Post by: unikronsoftware 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...
Title: Re: tk2dUITextInput OnChangeText on iOS not called
Post by: luispedrofonseca 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?
Title: Re: tk2dUITextInput OnChangeText on iOS not called
Post by: unikronsoftware on September 04, 2014, 09:52:27 am
Try this - http://2dtoolkit.com/forum/index.php/topic,3637.msg18746.html#msg18746