I have a scene with multiple Input Fields and they are being formatted within a panel and a vertical layout group. When I build to Android or iOS devices, sometimes when I am in middle of typing into an input field, some of the other fields texts also have the same text showing in the field I just finished typing in.
This is just a visual issue because the other fields actually have what was written inside them, but to the user, he will see the text from the other input field.
Here are some examples of the issues
Ok so I was pretty sure I’ve looked through each of the input field components but I must have over looked this every time. I must have missed this but apparently the place holders under some of the input fields were set to the wrong one so it was causing this issue.
As of now things seem to be working correctly
I’ve had the same issue with iOS for quite a while.
I’ve spent many hours trying to get to the bottom of this bug, but I can’t find the solution.
I’ve redone every inputField from scratch, updated to Unity 5, nothing. It’s really weird…
I think the only sensible solution here is to take a screen capture once the active input is selected, then apply the texture to a raw image stretched to canvas size. Place the active input at the top of the render order, followed by the screen cap. When the input is done remove the screen cap and waula.
Alright, so I did some more debugging on this and I attached a script to only one of the input fields and for some reason on the device, every single time I select a different input field, the one with the script changes its “inputfield.text” string to whatever input field is currently selected.
With that said, it seems like the reason why they all start changing text to the currently selected on is because all their inputfield.text thinks that their text is the one thats being selected.
I also found this bug, and I believe it’s caused by something when you use Best Fit = ON.
I’ve tried many different options in the InputField , and the thing that caused the text-typed to end up in other InputFields was having Best Fit = ON.
Try using InputFields with Best Fit = OFF and see if you still have the problem.
@MochiBits - Unfortunately that is not correct. I have had issues with both , ON and OFF. They don’t always happen but they do. So this error unfortunately is still here and still causing many issues.
I have actually ran debug tests with this a while back which seemed to let me know that there is a weird bug in the mobile players that cause the text of all the input fields to think it should be what the active input field has inside it.
I say this because I selected a field in the editor and then another and it reacted properly but in the mobile player (iOS debug output) I had weird displays where I would debug a text from the first input field and then when selecting the next one, it would come up as if it were the first one… So Yea, weird stuff.
4.6.6p3 has patch notes that seem to address this issue, but I haven’t tested specifically for this bug so I don’t know for sure that it’s fixed, nor do I know which versions in Unity 5 have the fix.
Yes, I am using the latest version of Unity 4.6x and I can say for certain that it is working properly. But now that you posted this response, I now remember to make sure its working on every patch as well.