I've looked into the UICamera.cs code, but haven't found a simple solution to the following issue:
- I need to disable any code that uses mouse input whenever that same input has been handled by NGUI.
- example: a user clicks on an NGUI widget and drags the mouse, releasing it somewhere else on screen. When that happens, I want my camera orbiting code to skip moving the camera based on mouse displacement. That code should be skipped from the moment the user clicks to the moment he releases the mouse button.
- UICamera.hoveredobject enables me to discard anything related to Input.GetMouseButtonDown(0), just by checking that it is not null (meaning that the click happened over an NGUI widget), but that's not good enough, because hovered may become null during the drag.
- Ideally, I'd like to check a static bool 'UICamera.isInputHandledByNGUI', that would be set to true whenever a user clicks on a widget and until he releases his click.
Is there something like that available somewhere, that I might have overlooked?
I can easily have my own manager on the side that would do all the checking work for me, but it feels that it is something that should naturally belong inside UICamera.cs