Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: ptychan on August 22, 2012, 01:28:25 PM
-
Which method is more optimal for mobile devices?
- Scroll View (clipped panel)
- Scroll View (secondary camera)
Thanks!
-
Secondary camera is faster, but you can do more with a clipped panel.
-
Thanks for the quick reply!
One more question, I have buttons in my scroll view that listen for OnRelease(). How can I add a threshold for this event so it works similar to the Drag/Click thresholds?
In other words, if I drag the scroll view beyond a certain value, I don't want OnRelease() to trigger.
-
You mean OnPress(false)? There is no OnRelease. This isn't built-in, so you'll have to add your own logic.
-
Yup. In UIButtonMessage, the OnRelease Trigger is essentially OnPress(false). Seems like I will have to add the threshold myself in UICamera. Thanks!