Author Topic: Best Practice to detect when mouse is on any menu  (Read 1256 times)

salepate

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 7
    • View Profile
Best Practice to detect when mouse is on any menu
« on: July 31, 2014, 08:28:46 AM »
Hello, I'm having a hard time firguring out whenever the mouse is inside a menu or outside any menus. This would help me disable other framework inputs while mouse is still hovering, clicking, pressing, dragging stuff.

I tried having a panel with a box collider, listening to HoverOver / HoverOut, but this doesnt work well if there are other colliders inside the collider.

What would you suggest?

Regards

Edit : Seems like UICamera.hoveredObject is what I was looking for.
« Last Edit: July 31, 2014, 08:54:53 AM by salepate »