- Home /
Unity 5 input field unable to store user input
Hi all, I recently updated unity to unity 5 and now I trying to create a scene with multiple InputField which allow user to register an account for the game.
But I struggled as the behaviour of InputField is weird. When I run the scene in the editor everything is working fine and I am able to capture the input text. But when I deploy it to an Android device, when the user tapped on the InputField the virtual keyboard will shown and the user could start key in the text. But after that, whenever user press on "OK" button that come with the InputField or "Done" button from the virtual keyboard, the InputField will either become empty or showing the PlaceHolderText that indicate the InputField is empty and I unable to capture any string value from the InputField.
Any suggestion or solution will be appreciated.
Thanks.
Answer by Yury-Habets · May 14, 2015 at 01:30 PM
Try using search:
http://answers.unity3d.com/questions/954231/problem-with-ui-input-field-in-android.html http://answers.unity3d.com/questions/963842/textfield-on-android-clears-the-text-when-user-tap.html
Please get the latest version - 5.0.2 should be available at the moment.
Updated to 5.0.2f1 and its working now. Thanks. But out of curiosity is that a bug for Unity 5?
This bug was introduced in 5.0 patch 1 (which was after the official release) and fixed in 5.0.1 patch 1.
Your answer
Follow this Question
Related Questions
UI Input fields not working properly in Unity 5 on Android 1 Answer
Keyboard on Android only opens for the first time during successive clicks on InputField 0 Answers
How to keep opening of keyboard when focus transferred to another input field by programmatically.? 0 Answers
Input Fields not actually taking in user data on android build 0 Answers
Why Android device need to loose Inputfield focus to listen to others events ? 0 Answers