NGUI to setup my UI in Unity.
Attached to the
MainCamera I do have a script to rotate the camera view by clicking and dragging.
It does handle mouse events using
The problem is that if I click and drag when the mouse is over a NGUI element (Button, Panel, Slider, whatever), NGUI handles all the mouse events correctly, but they also go through the
MainCamera, and the camera rotate.
I want to prevent that.
If I use for example the Unity
GUI.Button(), the mouse events are not transfered to the
MainCamera and the camera does not rotate.
I have to replicate that, but using NGUI.
I have searched on their support forum, but i couldn't find a solution.