Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Rozik on October 19, 2012, 05:09:28 PM
-
Hi guys,
i have some custom code to detect some gestures i need like swipe and zoom.
Works great but when the gesture starts on top of some gui element like a button the event for that element is called too.
Anyone able ot help me out with whats best practise to disable Ngui events when a gesture was reconized and turn it back on afterwards? Or am i missing something?
Thx a lot for any hints you can give me.
-
Try add collision plane at top of all elements when OnPress is true, and remove when gesture is done.
-
You can use the UICamera.fallThrough if you want to handle gestures that were not handled by a widget, or UICamera.genericEventHandler if your gestures can begin anywhere -- on UI or not.