Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - NeilM

Pages: 1 [2]
16
NGUI 3 Support / Events not bubbling up properly
« on: December 08, 2014, 11:16:55 AM »
I'm having troubles getting a widget to receive click events and I was wondering if anyone could help out.

I have one full screen widget with a UIEventTrigger script on it.  The On Drag Out calls a function where I process swipes left and right.
Behind that, I have a Camera to my 3D scene.  That camera has a UICamera script on it set to 3D UI and Event Mask of "Player".
Inside the 3D scene, I have a gameobject with a layer set to "Player".  It has a UIEventTrigger script on it, that reacts to OnClick events.

Both the swipes and the clicks work well in isolation, but when I try to use the two together, the drag code appears to be eating the click events.  Is there any way I can get the click events to pass down to the lower camera?

Pages: 1 [2]