Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: salepate on July 31, 2014, 08:28:46 AM

Title: Best Practice to detect when mouse is on any menu
Post by: salepate 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.