Search Unity

Keyboard input WebGL Mobile

Discussion in 'Web' started by tmorelli, Nov 19, 2017.

  1. Lughinu

    Lughinu

    Joined:
    Nov 3, 2016
    Posts:
    11
    how to install text mesh pro experimental version:

    1 open Packages\manifest.json
    2 find textmeshpro line and change it with "com.unity.textmeshpro": "4.0.0-pre.2"
    3 go back to unity and wait until installation is finished
     
    Last edited: Mar 17, 2023
  2. fxlange

    fxlange

    Joined:
    Dec 20, 2016
    Posts:
    45
    Any Update on this? Unfortunately I don't have access to those tickets. Have the same email issue (email input) in 2022.2 with TMP 3.2.0 pre 4.
     
    xucian likes this.
  3. AndreaGalet

    AndreaGalet

    Joined:
    May 21, 2020
    Posts:
    95
    Same issue with also number fields
     
    Last edited: May 29, 2023
  4. tranhongdiep

    tranhongdiep

    Joined:
    May 27, 2016
    Posts:
    3
    Sorry, but are this feature released? I can't find any info about it.
     
  5. AndreaGalet

    AndreaGalet

    Joined:
    May 21, 2020
    Posts:
    95
    yes on version 3.2.0-pre4, you have to install it manually or wait for the official stable release
     
  6. pogarra

    pogarra

    Joined:
    Nov 9, 2022
    Posts:
    1
    I'm having a problem where the keyboard won't show up when I full screen the WebGL build on mobile. Is there a workaround for this?
     
  7. Ikaro88

    Ikaro88

    Joined:
    Jun 6, 2016
    Posts:
    300
    I have this problem
    I updated the project to unity 2022.3
    Now also if I enable the preview pachages I not see textmeshpro 3.2.0...why????
     
  8. SIC_App

    SIC_App

    Joined:
    Nov 2, 2021
    Posts:
    1
    Still by default keyboard input is not working in 2022.2.12f1
     
  9. Ed6i

    Ed6i

    Joined:
    Sep 10, 2021
    Posts:
    2
    any solution this problem?
     
  10. Ed6i

    Ed6i

    Joined:
    Sep 10, 2021
    Posts:
    2
  11. elliot_eserin

    elliot_eserin

    Joined:
    Jan 5, 2020
    Posts:
    38
    Which Unity version did you use this in? I tried doing this in the latest LTS - 2022.3.9 and it didnt seem to work for me, unless Ive missed something
     
  12. IndigoGorki

    IndigoGorki

    Joined:
    Mar 2, 2018
    Posts:
    35
  13. elliot_eserin

    elliot_eserin

    Joined:
    Jan 5, 2020
    Posts:
    38
    From my testing (this is on 2022.3.9 LTS) I have realised that mobile keyboard seems to work fine with the legacy input field but not TextMeshPro input fields. Maybe this is mentioned explicitly somewhere and I just missed it but this is what I was doing wrong. If you get it working with TMPro (maybe it is added in a pre-release or something) I would be interested to know how.
     
  14. IndigoGorki

    IndigoGorki

    Joined:
    Mar 2, 2018
    Posts:
    35

    I hope they will add support for TextMeshPro as well, but until then, I will continue to use this:
    https://github.com/kou-yeung/WebGLInput It works excellently on all input fields and is very easy to use and understand.
     
  15. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    953
    Support for mobile keyboard in Web platform builds did land into Unity some time ago now, like Brendan suggested.

    Also support for TextMeshPro should be there.

    However tracking the comments in this long thread, it looks like that support is partial or buggy.

    Searching our bug database, I find one ticket regarding TMPro, which was also linked to earlier in this thread:

    https://unity3d.atlassian.net/servicedesk/customer/portal/2/IN-33305 - [WebGL] TMPro input field does not prompt a keyboard when in fullscreen mode on a mobile browser

    I've bumped the priority of that bug to High.

    If that does not cover the seen use cases, I recommend opening a new thread about the issue (since this thread has a long history of several bugs) and reporting a bug - that way the conversation can be refocused on behavior in very specific conditions.
     
    xucian, De-Panther and IndigoGorki like this.
  16. AndreaGalet

    AndreaGalet

    Joined:
    May 21, 2020
    Posts:
    95
    I opened two bugs report about it sometimes ago:

    UUM-48974

    https://issuetracker.unity3d.com/is...text-in-the-input-field-using-mobile-keyboard

    UUM-42824

    https://issuetracker.unity3d.com/is...en-the-inputfield-is-set-to-only-take-numbers
     
  17. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    953
    Thanks for linking AndreaGalet.

    I see that both issues have been cleared by QA and reached the team backlog. These are also already assigned to developers, so I hope that there will be updates on these in the coming weeks.
     
    AndreaGalet likes this.
  18. xucian

    xucian

    Joined:
    Mar 7, 2016
    Posts:
    846
    thanks, any resource where I can check the status of this?

    too afraid to do it on a 300k lines of code project. but in case you've tried it since then, did you get any issues? and how large is the project?

    I don't personally, but I replied to sama-van, maybe he used tmp 4.0 and can tell us if it solves it (and if it's stable)
     
    Last edited: Nov 11, 2023
  19. hatibnb_unity

    hatibnb_unity

    Joined:
    Mar 2, 2021
    Posts:
    6
    Gorki1337
    can you help me in this i have used the same plugin which you have been using but i m facing a weird thing while on mobile browser there is a black bar being shown where it first show the values being punched in the input field i want to get rid of it any suggestion ? i have tried to disable the "Hide mobile input " option in TMP input but did not work
     

    Attached Files:

  20. IndigoGorki

    IndigoGorki

    Joined:
    Mar 2, 2018
    Posts:
    35
    The plugin works in such a way that it writes a value in that input field from the browser and then via JS > C# it enters the value in the TMP InputField itself. But I'm not sure why it's in the middle of your screen, maybe it's because of the browser or your mobile phone.
     
    hatibnb_unity likes this.
  21. Romaleks360

    Romaleks360

    Joined:
    Sep 9, 2017
    Posts:
    72
    Mobile keyboard input on WebGL works fine for me only on 3.2.0-pre.4.
    Updating to 3.2.0-pre.6 or 4.0.0 throws errors on submit
    "Email" content type doesnt work though, but this is manageable
     
    Last edited: Dec 19, 2023
  22. HamidMac

    HamidMac

    Joined:
    Sep 18, 2019
    Posts:
    15
  23. hatibnb_unity

    hatibnb_unity

    Joined:
    Mar 2, 2021
    Posts:
    6
    Gorki1337 has shared the work around above which worked perfectly fine with the TMP . you can try that @HamidMac
     
  24. Split3

    Split3

    Joined:
    Aug 21, 2017
    Posts:
    17
    Used 4.0 prev 2. It works. However, it's not perfect. When clicking on the input field it zooms into a corner and it does not work on fullscreen.

    Using unity 2022.3.18f1
     
    Last edited: Jan 31, 2024
  25. unityruba

    unityruba

    Unity Technologies

    Joined:
    Nov 6, 2020
    Posts:
    271
    Can anyone here share a project that shows this problem?
     
  26. HamidMac

    HamidMac

    Joined:
    Sep 18, 2019
    Posts:
    15
    I can share my problem:
    TMP InputField in mobile doesn't work (it won't open the on-screen keyboard) but the legacy input field works.
    none of them work when the application is in fullscreen mode.
    I built a new empty project (PWA WebGL) with the two input fields and a fullscreen toggle button and put it here
    if it is any use I can put the project on github too!
     
    xucian likes this.
  27. unityruba

    unityruba

    Unity Technologies

    Joined:
    Nov 6, 2020
    Posts:
    271
    @HamidMac I see what you're describing in that link! Can you open a bug report with this project and send me the report number? Customer QA will do the necessary testing to see how far back this issue goes, and they'll give us a bug report with all the info needed for us to get working on it immediately.
     
    xucian likes this.
  28. HamidMac

    HamidMac

    Joined:
    Sep 18, 2019
    Posts:
    15
    xucian, unityruba and De-Panther like this.
  29. HamidMac

    HamidMac

    Joined:
    Sep 18, 2019
    Posts:
    15
    so it has been closed with the resolution Won't Fix. o_O
    WebGL is not supported on mobile browsers for the Unity versions mentioned here (2021.3, 2022.3).
    to be fair it is said in the documentation that it doesn't support mobile:)
     
    xucian likes this.
  30. xucian

    xucian

    Joined:
    Mar 7, 2016
    Posts:
    846
    Can you point to that piece of documentation? Which versions, then, support it?