Hi - I'm using NGUI in the Unity Editor. I have a simple scene with a camera and a sprite with a UIButton attached. Inside the UIButton I call a notification method on the OnClick event.
Now when I run inside the editor and click the button I get the OnClick event happening twice. One time it is from the button and a second time from the camera.
If I turn off mouse in the camera event sources and click the button I don't get any events coming through at all.
How can I filter out the camera OnClick events ? All I want to know is when the button has been clicked, not when a widget visible by the camera has been clicked too.
Thanks