- Home /
Blocking NGUI events
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?
Comment
Answer by Denvery · Mar 28, 2014 at 10:51 AM
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
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
NGUI : UIPanel can't show 0 Answers
Problems using NGUI for in-game options sliders 0 Answers
Trying to delay movement of a GameObject 1 Answer
NGUI TweenPostion.. 2 Answers