Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Bobbin on March 13, 2014, 09:01:23 AM

Title: Scrolling ScrollView in Code
Post by: Bobbin on March 13, 2014, 09:01:23 AM
I need to change the scroll position of a scrollview element after pushing a button.
I've tried several things but nothing seems to work. Help?
Title: Re: Scrolling ScrollView in Code
Post by: ArenMook on March 14, 2014, 12:15:36 PM
SpringPanel.Begin will move the scroll view to the target local position of your choice. UIScrollView.SetDragAmount will move the scroll view to the target relative position (0-1 range).
Title: Re: Scrolling ScrollView in Code
Post by: Bobbin on March 16, 2014, 03:36:14 AM
Thanks.