When i start dragging camera by mouse\finger(if touch device) I want to desable all ngui events in case i hit a button or object in scene with script on it. How do i do it avoiding lots of “if (!CameraIsMovingNow) {” code?
When camera begins to drag, you can switch off all events from NGUI by disabling script “UICamera” programmatically.
go.GetComponent<UICamera>().enabled = false;
where “go” is GameObject representing MainCamera