Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Really big bug with several Input Fields on a scene

Discussion in 'UGUI & TextMesh Pro' started by d34thst4lker, Feb 24, 2015.

  1. d34thst4lker

    d34thst4lker

    Joined:
    Aug 4, 2013
    Posts:
    124
    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
    reg3.PNG reg2.PNG reg1.PNG

    Is this issue being fixed? I have tried some ways to work around this but nothing seems to be working.

    Thanks!
     
    Last edited: Feb 26, 2015
  2. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,685
    Sounds like you need to log that with the Unity bug reporter, especially if it is only happening on the target platform.
     
  3. d34thst4lker

    d34thst4lker

    Joined:
    Aug 4, 2013
    Posts:
    124
    Just posted a bug through the bug reporter tool. Hopefully this gets fixed asap. This has been happening since I started using 4.6 Beta
     
  4. d34thst4lker

    d34thst4lker

    Joined:
    Aug 4, 2013
    Posts:
    124
    Ok I think I found out the reason. Gonna run some tests. This could have been a mistake I made when creating the fields! dam!
     
  5. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,685
  6. d34thst4lker

    d34thst4lker

    Joined:
    Aug 4, 2013
    Posts:
    124
    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
     
  7. d34thst4lker

    d34thst4lker

    Joined:
    Aug 4, 2013
    Posts:
    124
    Hey, I'm back at this issue... I actually started receiving this same issue again and I have made sure all the components are correct.
     
  8. zlremillard

    zlremillard

    Joined:
    Nov 19, 2014
    Posts:
    11
    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...
     
  9. d34thst4lker

    d34thst4lker

    Joined:
    Aug 4, 2013
    Posts:
    124
    This is terrible. I'm about to launch my game and this issue is getting in the way
     
  10. evilmaster

    evilmaster

    Joined:
    May 10, 2014
    Posts:
    4
    I'm having the same problem (Unity 5.0.0f4, Android). :(

    Can't find any predictable way to replicate the bug but it does seem to happen more often when I switch between inputfields very fast.

    I have two inputfields only...
     
  11. Feaver1968

    Feaver1968

    Joined:
    Nov 16, 2014
    Posts:
    70
    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.
     
  12. aterenzi

    aterenzi

    Joined:
    Aug 19, 2013
    Posts:
    8
    Same issue, but only when my app runs on iOS 8.2, neither on any previous version nor on Android.

    I am not 100% sure, but it may depend on the "Best Fit" option being turned on. If I turn it off the problem seems not to occur.
     
    Last edited: Mar 26, 2015
  13. d34thst4lker

    d34thst4lker

    Joined:
    Aug 4, 2013
    Posts:
    124
    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.

    This should definitely not be happening.

    This makes absolutely no sense at all.
     
    Last edited: Mar 27, 2015
  14. MochiBits

    MochiBits

    Joined:
    Mar 11, 2014
    Posts:
    30
    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.
     
  15. Undertaker-Infinity

    Undertaker-Infinity

    Joined:
    May 2, 2014
    Posts:
    112
  16. d34thst4lker

    d34thst4lker

    Joined:
    Aug 4, 2013
    Posts:
    124
    @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.
     
  17. MochiBits

    MochiBits

    Joined:
    Mar 11, 2014
    Posts:
    30
    Ah ok. Too bad. I'm on 4.6.3f1.

    It's a good thing people never want to use more than one input field. :)
     
  18. Narendraom

    Narendraom

    Joined:
    Jul 8, 2015
    Posts:
    35
    Hey! I have the same issue. can anyone please tell me the bug was fixed or not and in which version this bug is fixed.
     
  19. DWilliams

    DWilliams

    Joined:
    Jan 12, 2015
    Posts:
    63
  20. d34thst4lker

    d34thst4lker

    Joined:
    Aug 4, 2013
    Posts:
    124
    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.