Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Touch input not working on WebGL

Discussion in '2021.2 Beta' started by auhfel, Jul 27, 2021.

  1. auhfel

    auhfel

    Joined:
    Jul 5, 2015
    Posts:
    92
    I tried both Input.touches on the old input system and using the new input system, touch input does not work. Touches does populate with the correct number of touches currently affecting the screen, but the touch position of each touch is not set. In my case they were all set to 0,1683 on my Razer 2 phone. The touches phases did seem to correctly register, just the position was never set correctly.

    I tried an older version of unity (2020.3.3f1) and it's working as expected.
     
    wuannetraam likes this.
  2. jiadongchen

    jiadongchen

    Joined:
    Dec 16, 2020
    Posts:
    3
  3. wuannetraam

    wuannetraam

    Joined:
    Oct 29, 2019
    Posts:
    87
    yea same problem here. hope it will be fixed soon.
    I'm on Unity 2021.2.0b5
     
  4. jiadongchen

    jiadongchen

    Joined:
    Dec 16, 2020
    Posts:
    3
    Looks like it is fixed in b6.
    • WebGL: Fixed handling of touch events. (1349226)
     
  5. dock

    dock

    Joined:
    Jan 2, 2008
    Posts:
    605
    Another year later and this isn’t fixed in Unity 2021.
     
  6. Timme

    Timme

    Joined:
    Dec 20, 2013
    Posts:
    1
    I am having the same issue. It might be that i am overlooking something, but should it work now, or still no?
     
  7. Mafutta

    Mafutta

    Joined:
    Sep 30, 2014
    Posts:
    45
    not working
     
  8. Zarod

    Zarod

    Joined:
    Jan 20, 2016
    Posts:
    59
    They DO work for me but Phase.Cancelled seems to not be called sometimes when more than 1 input is preesent.