Page 1 of 1

Text Input doesn't stick in mobile

Posted: Sat Oct 05, 2019 10:57 am
by Raelyr
Hey, I use a text input field from dialogue system to let players set their name in my game. In PC it works fine, but when I build for Android, it pops up, lets you alter the text, and press OK, but then it doesn't actually save the PlayerName variable. Any reason the two would be different? I have a vague suspicion that it's something to do with controls (ie pressing enter on keyboard is handled differently than tapping OK on Android)? Thanks in advance!

Re: Text Input doesn't stick in mobile

Posted: Sat Oct 05, 2019 3:20 pm
by Tony Li
Hi,

I think you're right. Configure the InputField's OnEndEdit(string) event to call the Text Field UI's StandardUIInputField.AcceptTextInput method.

Re: Text Input doesn't stick in mobile

Posted: Tue Oct 15, 2019 9:58 am
by Raelyr
Thanks, that worked perfectly!

Re: Text Input doesn't stick in mobile

Posted: Tue Oct 15, 2019 10:12 am
by Tony Li
Glad to help!