Text Input doesn't stick in mobile
Text Input doesn't stick in mobile
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
Hi,
I think you're right. Configure the InputField's OnEndEdit(string) event to call the Text Field UI's StandardUIInputField.AcceptTextInput method.
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
Thanks, that worked perfectly!
Re: Text Input doesn't stick in mobile
Glad to help!