Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

UI button gets stuck in the pressed state while playing with touch screen

Discussion in 'UGUI & TextMesh Pro' started by GlennM2H, Apr 7, 2021.

  1. GlennM2H

    GlennM2H

    Joined:
    May 4, 2020
    Posts:
    4
    Hey,
    my UI button gets stuck in the pressed state while playing with touchscreen controls(new input system).

    When I have just one button in my scene everything is perfectly fine and the button never gets stuck in the pressed state however when I have 2 buttons(For example 1 UI button for jumping and 1 UI button for moving) one of the two buttons will stay stuck in the pressed state if I have pressed both buttons, one after another and releasing my fingers from the buttons one after another. It is always the first button that stays stuck.

    Some information about the project and easy REPRO in a fresh project:
    1. Make a new android project
    2. Import the new input system and use the default UI input map
    3. add an Event System and an Input System UI Input Module
    4. Make sure pointer behaviour is set to Single Mouse Or Pen......
    5. Add 2 default buttons with a colour for the pressed state
    6. Build and repro the issue by having pressed both buttons, one after another and releasing your fingers from the buttons one after another

    Notes:
    Unity Version: 2019.4.23
    Input System Update Mode: I am running the input system in dynamic update mode.
    Input System version number: 1.0.2

    Link to a repro project:
    http://share.m2h.nl/f.php?h=3F_Xr_pdFuN5mNnl
     
    Last edited: Apr 7, 2021
    AlonMixed and BinaryRavine like this.
  2. GlennM2H

    GlennM2H

    Joined:
    May 4, 2020
    Posts:
    4
  3. donovand4

    donovand4

    Joined:
    May 8, 2013
    Posts:
    9
    Same happening here!
    Input system: 1.0.2
    Unity version: 2020.3.1f1
     
  4. AnimaxNeil

    AnimaxNeil

    Joined:
    Jan 5, 2019
    Posts:
    2
    The exact same thing is happening to me.
    Unity 2021.1.17f
    Input System 1.0.2

    Someone please help. It is a very critical problem in my game.
     
  5. revederick

    revederick

    Joined:
    Feb 16, 2021
    Posts:
    1
  6. Luisinful

    Luisinful

    Joined:
    May 17, 2014
    Posts:
    1
    update the input system package, there is a fix in ver 1.1.0 preview 3
    u can find a github for that ;)
     
    SirSkylake likes this.
  7. MaverickSFO

    MaverickSFO

    Joined:
    Aug 1, 2018
    Posts:
    1
    Did anyone find a fix for this?
     
    BinaryRavine likes this.
  8. BinaryRavine

    BinaryRavine

    Joined:
    Oct 30, 2021
    Posts:
    6
    Any luck? its making me sick...
     
  9. SirSkylake

    SirSkylake

    Joined:
    Oct 19, 2016
    Posts:
    7
    I fixed by updating the InputSystem update to 1.3.0, in PackegeManger (UnityRegistry) search for InputSystem then click on Other Versions and all version will be displayed.
     
    MaverickSFO likes this.
  10. AnimaxNeil

    AnimaxNeil

    Joined:
    Jan 5, 2019
    Posts:
    2
    I confirm that the update will fix it. Thanks for the bumps.
     
  11. smelukov

    smelukov

    Joined:
    Jun 5, 2013
    Posts:
    1
    Updating into 1.3 does not help :(
    In WebGL project, if I tap on two on-screen buttons at the same time, one of them gets stuck in the pressed state
     
    Unique-Player and dnnkeeper like this.
  12. Unique-Player

    Unique-Player

    Joined:
    May 6, 2017
    Posts:
    74
    I am on 1.4.4, 2021LTS, same problem. Buttons get stuck on pressed state.
     
  13. AlonMixed

    AlonMixed

    Joined:
    Dec 10, 2017
    Posts:
    23
    Same problem with 2022.3 and Android with the new input module and input system set to both. When changing the input module to the old one, it works.
     
    Last edited: Jul 16, 2023
    ROBYER1 likes this.