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

Bug UI Toolkit does not register mouse button in build. [#1402289]

Discussion in '2022.2 Beta' started by Gekigengar, Oct 8, 2022.

  1. Gekigengar

    Gekigengar

    Joined:
    Jan 20, 2013
    Posts:
    738
  2. uBenoitA

    uBenoitA

    Unity Technologies

    Joined:
    Apr 15, 2020
    Posts:
    220
    OK, thank you for reporting this. We will verify if we can reproduce the issue. About the issue you're describing in https://forum.unity.com/threads/cant-interact-with-buttons-on-build.1343255/ however, I think it might be a different thing.

    This bug here was fixed as a side effect of other fixes for the hover state not working properly. It's possible that it came back from a different cause. I'll investigate and let you know what we find.
     
  3. uBenoitA

    uBenoitA

    Unity Technologies

    Joined:
    Apr 15, 2020
    Posts:
    220
    Hi. I've retested the repro for the bug on 2022.2.0b10 and from what I see here the bug is properly fixed. The player.log contains "pressed-> 1" when I left-click on the panel's pink background, and "pressed-> 2" when I right-click on it, as it's supposed to, whereas in 2021.2.15f1 it always prints "pressed-> 0". There might be other things not working but this bug isn't it, or if so it needs some new reproduction steps and results, perhaps a new bug report altogether.

    I'm keeping this bug as "fixed" until further notice, but I'll notify someone from quality assurance so they can double-check when they get a chance.
     
  4. ivank

    ivank

    Joined:
    Nov 16, 2013
    Posts:
    105
    Hi @uBenoitA, just fyi it seems the bug has reappeared again at least in beta 13, and at least for WebGL.
    Bug Report CASE IN-22066.
    Mentioned and described in WebGL thread here.
     
  5. ivank

    ivank

    Joined:
    Nov 16, 2013
    Posts:
    105
    I hereby confirm that the buttons in WebGL builds are not "pressable" even in the Beta 14.
    Quite annoying bug de facto making WebGL impossible to use.
     
  6. uBenoitA

    uBenoitA

    Unity Technologies

    Joined:
    Apr 15, 2020
    Posts:
    220
    OK, noted, thank you. Like I said, it's possible that buttons aren't pressable for other reasons than the exact bug that I said was fixed (i.e. there's another bug having similar side effects). Since we need a repro project or repro steps to follow to reproduce the bug when fixing it, and (at least in 2022.2.0b10) the repro project for 1402289 doesn't reproduce the bug anymore, it's becoming quite hard to reuse the same bug number to track it at this point.

    I think you resubmitting the issue as IN-22066 is the best way forward at this point. Again, thanks for reporting this!
     
  7. ivank

    ivank

    Joined:
    Nov 16, 2013
    Posts:
    105
    just a note - in Beta 15 not yet fixed
     
  8. sionzee_

    sionzee_

    Joined:
    Oct 21, 2016
    Posts:
    11
  9. ivank

    ivank

    Joined:
    Nov 16, 2013
    Posts:
    105
    Thanks @siOnzeeCZ ; not sure the issues are identical:(
    It persists even with the "Active Input Handling" set to "Input Manager (Old)"
    while the one you refer to claims to be active only when "Active Input Handling" is set to "Both".

    It has been mentioned in this post by Unity that the bug was successfully replicated, so hopefully there is still chance the WebGL builds will be usable in the final release of 2022.2? Maybe @uBenoitA can shed some light...?;)
    My bug report IN-22066 however has not been confirmed yet
     
    Last edited: Nov 20, 2022