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 not receiving mouse events? 5.6.0f1

Discussion in 'Linux' started by NathanWarden, Apr 2, 2017.

  1. NathanWarden

    NathanWarden

    Joined:
    Oct 4, 2005
    Posts:
    663
    I'm using 5.6.0f1. For some reason I can't click on any UI elements. The same UI works fine in 5.5.2f1.

    edit: This is in a build, it works fine in the editor itself. I have the defaults of "Full Screen" and "Native Resolution"

    Also, a quick check using the joystick seems to work properly.

    Can anyone else confirm this, or am I doing something wrong?

    edit: Also, creating a new scene and simply adding a button doesn't seem to work. Joystick works though.

    Thanks,
    Nathan
     
    Last edited: Apr 2, 2017
  2. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    I don't get that behavior here - can you send your scene?
     
  3. yuliyF

    yuliyF

    Joined:
    Nov 15, 2012
    Posts:
    194
    I get this bug with items in ScrollRect
     
  4. Ungrawli

    Ungrawli

    Joined:
    Apr 13, 2014
    Posts:
    3
    I have same bug Unity5.6.0f3. On Mac OSX or Windows all perfectly. On Linux UI not working. The same UI works fine in 5.3.6f1 on Linux.
     
  5. rustybroomhandle

    rustybroomhandle

    Joined:
    Oct 12, 2013
    Posts:
    7
    Same bug here. Input fine in windowed mode - no mouse events in fullscreen. Works fine when starting in windowed and then switching to fullscreen in-game.
     
  6. Deccard

    Deccard

    Joined:
    Aug 1, 2016
    Posts:
    6
    Happens for me, too, using Kubuntu with Plasma Desktop
     
  7. knobby67

    knobby67

    Joined:
    Aug 30, 2015
    Posts:
    388
    Think its same as bug I'm reporting in buttons not working in full screen, unity 5.6 f3, lubuntu. Used to work
     
  8. WaaghMan

    WaaghMan

    Joined:
    Jan 27, 2014
    Posts:
    245
    Some of our users are reporting this behavior as well. 5.6.0p3.
     
  9. rustybroomhandle

    rustybroomhandle

    Joined:
    Oct 12, 2013
    Posts:
    7
    So what's the common thing here - could it be dual-monitor related?
     
  10. knobby67

    knobby67

    Joined:
    Aug 30, 2015
    Posts:
    388
    Not on mine, fails on laptop single screen and dual screen dev machine
     
  11. knobby67

    knobby67

    Joined:
    Aug 30, 2015
    Posts:
    388
    Common seems to be f3 build
     
  12. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    ...or even a player log? Anything?
     
  13. targaciej

    targaciej

    Joined:
    Mar 22, 2014
    Posts:
    7
  14. knobby67

    knobby67

    Joined:
    Aug 30, 2015
    Posts:
    388
    This is my log file, simple build, 1 button says hello world; hit esc to exit. Windowed runs fine, full screen buttons does not work. By that I mean does not call "hello world" or respond to being pressed, that is does not change colour.
    player log
    Code (csharp):
    1.  
     
  15. kaskiU

    kaskiU

    Joined:
    Aug 6, 2013
    Posts:
    50
    I tested compiled version of my current project and noticed I have the same behaviour. I created a bug report. There is project source as well as the compiled linux version. Also details how to reproduce same bug and my system information.

    Id: 911183
     
  16. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
  17. kaskiU

    kaskiU

    Joined:
    Aug 6, 2013
    Posts:
    50
    Last edited: May 16, 2017
  18. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    Sigh.

    Thanks, investigating...
     
  19. QLQART

    QLQART

    Joined:
    Mar 5, 2014
    Posts:
    8
  20. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
  21. kaskiU

    kaskiU

    Joined:
    Aug 6, 2013
    Posts:
    50
  22. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
  23. kaskiU

    kaskiU

    Joined:
    Aug 6, 2013
    Posts:
    50
    I guess so! Hovering on the button turns it to magenta color, clicking (and holding) turns it to blue color and releasing back to magenta.
     
  24. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    Great! Can anyone else confirm?
     
  25. QLQART

    QLQART

    Joined:
    Mar 5, 2014
    Posts:
    8
  26. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    Is this a multidisplay system? On which display did the player launch?
     
  27. QLQART

    QLQART

    Joined:
    Mar 5, 2014
    Posts:
    8
    Last edited: May 19, 2017
  28. knobby67

    knobby67

    Joined:
    Aug 30, 2015
    Posts:
    388
    Hi Appears to work
    Code (csharp):
    1.  
     
  29. mons00n

    mons00n

    Joined:
    Sep 18, 2013
    Posts:
    304
    This appears to be related to which environment you have loaded. My application works fine with Unity (not Unity3d), but if I log in with Gnome3 my app receives no mouse input. I have also verified that it fails with KDE, Cinnamon, and Xfce with our other users.

    If you start the application in windowed mode then change to full screen it proceeds to work as expected. I should also add that every machine in the office running the default Unity user environment on Ubuntu works as intended without issue.
     
    Last edited: May 19, 2017
  30. mons00n

    mons00n

    Joined:
    Sep 18, 2013
    Posts:
    304
    Works on Gnome3. We have been experiencing this issue with NGUI though; are your fixes only related to ugui elements or mouse events in general?
     
  31. kaskiU

    kaskiU

    Joined:
    Aug 6, 2013
    Posts:
    50
    Cinnamon (Cinnamon 3.2.7, Mint 18.1) works with Tak's patch (CoordinatesTestPlayer-patch0.tar.gz). Here is full system information in case it is needed: https://gist.github.com/anonymous/8546a63548917b547e8eec8ed60f28ff

     
    Last edited: May 21, 2017
  32. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    It's about the reported mouse position - nothing specific to ugui nor ngui.
     
    mons00n likes this.
  33. jakubgondek

    jakubgondek

    Joined:
    Feb 13, 2017
    Posts:
    2
    @Tak what about events from touchscreens? With @Pankulka we were receiving hover, but no touch/click. Any timeline on serious touch support on Linux?
     
  34. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    OK, this fix has been scheduled for 5.6.1p2.
    If it still doesn't work for you (using a mouse), now's the time to speak up!
     
    kaskiU, knobby67 and mons00n like this.
  35. Deccard

    Deccard

    Joined:
    Aug 1, 2016
    Posts:
    6
    Works for me using Kubuntu with Plasma Desktop
     
  36. dtaralla

    dtaralla

    Joined:
    Jan 1, 2016
    Posts:
    16
    @Tak Some of our users do still have the issue even with 5.6.1p2 builds... The only information we could get was the complete system specs on which the issue is still present:
    Note that 5.6.1p2 fixed the bug for most of our users, included our linux test machines here at the studio... So the fix is real, but not 100% complete ^^ Sorry for not mentioning it earlier...
     
  37. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    In that case, any information you/they can provide will be helpful.
     
  38. Deccard

    Deccard

    Joined:
    Aug 1, 2016
    Posts:
    6
    Wait, where can I get this version? It's not listed in the official thread.
     
  39. Cdj180

    Cdj180

    Joined:
    Jul 3, 2014
    Posts:
    1
    Agreed, I'd like to be able to fix this on my builds.
     
  40. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
  41. mons00n

    mons00n

    Joined:
    Sep 18, 2013
    Posts:
    304
    @Tak still seeing this in 5.6.1p4 Ubuntu16.04 Gnome3 for some reason. Any other info I can provide to help?
     
  42. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
  43. mons00n

    mons00n

    Joined:
    Sep 18, 2013
    Posts:
    304
    Attached is the player log for running the above. It works for me and allows me to hit the button - so I wonder if this could be NGUI related?
     

    Attached Files:

    • out.txt
      File size:
      36.4 KB
      Views:
      906
  44. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    As far as I know, NGUI should work the same way that the builtin UI does.
    If you send me a simple NGUI project that reproduces the issue for you, I can build a similarly instrumented player so we can see what's going on. (Or you can create a build yourself using the 5.6.1xf1Linux linux editor build, and replace the .x86_64 binary with the one from the player linked at https://forum.unity3d.com/threads/ui-not-receiving-mouse-events-5-6-0f1.464107/#post-3073319 )
     
  45. _Adriaan

    _Adriaan

    Joined:
    Nov 12, 2009
    Posts:
    481
    A lot (all) of my Hidden Folks on Linux users are seeing this issue thus my game doesn't work at all for them anymore. Can I send them the Coordinates test / will that help you?
     
  46. _Adriaan

    _Adriaan

    Joined:
    Nov 12, 2009
    Posts:
    481
    To reiterate: a lot of my Linux users are seeing this issue. Would it help to send over my entire project, the logs other players are getting, and the specs of their computers?
     
  47. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    If you're having this issue on 5.6.1p2 or later, yes.
     
  48. enrico_luzzani

    enrico_luzzani

    Joined:
    Jun 29, 2017
    Posts:
    1
    I think I'm experiencing the same issue on 5.6.1p4 and SteamOS. Works fine launched from the Steam client on Ubuntu, but when launched from SteamOS fullscreen I cannot click on buttons.
     
  49. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    We've managed to track down another way of causing the issue, even with the previous fix.
    If you (or your users) are still seeing this issue, please try a 5.6.2f1 build using this patched player (or this one, if you're hosting from the linux editor).
     
  50. mons00n

    mons00n

    Joined:
    Sep 18, 2013
    Posts:
    304
    The patched player seems to have done the trick on Ubuntu16.04 w/Gnome3!