Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. 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:
    8,937
    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.