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

A bug involving GUI and OnMouseUp

Discussion in 'Immediate Mode GUI (IMGUI)' started by PentagramPro, Jun 8, 2014.

  1. PentagramPro

    PentagramPro

    Joined:
    Apr 5, 2014
    Posts:
    23
    I`ve encountered something that looks like a bug in handling mouse clicks. This problem first appeared in Unity 4.5.

    When I click somewhere on GUI, some other object receives OnMouseUp notification. This is not a click-through problem because this object is not under mouse and not behind GUI.

    Look at picture for more info:
    problem.jpg
     
    Last edited: Jun 10, 2014
  2. PentagramPro

    PentagramPro

    Joined:
    Apr 5, 2014
    Posts:
    23
    I`ve checked it on older version of Unity (4.3) and I couldn`t reproduce this issue on PC. However it is reproduced on Android.
     
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350
    Are you sure no other finger is touching screen? (because then it will do click in the middle of those 2 hits)
     
  4. PentagramPro

    PentagramPro

    Joined:
    Apr 5, 2014
    Posts:
    23
    Yes, I`m sure. As I said this problem can be reproduced on PC (Unity 4.5) with regular mouse.