Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: ptychan on August 22, 2012, 01:28:25 PM

Title: Scroll View for Mobile Devices
Post 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!
Title: Re: Scroll View for Mobile Devices
Post by: ArenMook on August 22, 2012, 03:10:20 PM
Secondary camera is faster, but you can do more with a clipped panel.
Title: Re: Scroll View for Mobile Devices
Post by: ptychan on August 22, 2012, 04:49:22 PM
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.
Title: Re: Scroll View for Mobile Devices
Post by: ArenMook on August 22, 2012, 07:17:04 PM
You mean OnPress(false)? There is no OnRelease. This isn't built-in, so you'll have to add your own logic.
Title: Re: Scroll View for Mobile Devices
Post by: ptychan on August 23, 2012, 12:57:31 PM
Yup. In UIButtonMessage, the OnRelease Trigger is essentially OnPress(false). Seems like I will have to add the threshold myself in UICamera. Thanks!