2D Toolkit Forum

2D Toolkit => Support => Topic started by: zblack on July 21, 2015, 06:54:38 pm

Title: tk2dUITextInput OnTextChange not firing on Android
Post by: zblack on July 21, 2015, 06:54:38 pm
I found a couple of topics from last year about this not working on iOS, but I'm having the opposite problem. Works fine on desktop (editor) and iOS - not on Android. Any help?
Title: Re: tk2dUITextInput OnTextChange not firing on Android
Post by: zblack on July 22, 2015, 02:57:45 pm
I solved this by using the same code that was used for the iOS case (which was already in tk2d):Just removed the UNITY_IOS check so it would also run on Android:

Code: [Select]
#if UNITY_IOS && !UNITY_EDITOR
inputStr = keyboard.text;
if(!inputStr.Equals(text)) {
newText = inputStr;
change = true;
}
#endif
Title: Re: tk2dUITextInput OnTextChange not firing on Android
Post by: unikronsoftware on July 22, 2015, 05:45:02 pm
Hi,

What version of tk2d are you using? I vaguely remember fixing this on Android in 2.5x...