Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Wahooney on January 29, 2014, 08:15:04 AM
-
Is there an quick and easy way of getting the distance the current scroll view can scroll up and down?
Preferably in a way where topScrollDistance + bottomScrollDistance == 1.0f || 0.0f
topDistance in units, bottomDistance in units and totalScrollableDistance in units would be great too!
-
Quick and dirty... not quite. But look inside UIScrollView.UpdateScrollbars -- it does that logic there.
-
Thanks! I'll have a look :D