Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: DuaneDog on March 05, 2014, 06:45:24 AM

Title: Calling Scrollview ResetPosition breaks scrollbars
Post by: DuaneDog on March 05, 2014, 06:45:24 AM
After populating my scrollview I call Resetposition() to get the scrollview repositioned at the top. However when I do this the scrollbar stops working. If I go into the inspector while the game is still running and move the value slider... then the scroll bar starts working as it should. I've tried using code change the value of the scroll bar right after the resetposition() but it has no effect. Any suggestions?

DuaneDog
Title: Re: Calling Scrollview ResetPosition breaks scrollbars
Post by: ArenMook on March 05, 2014, 07:39:03 AM
Try calling SetDragAmount instead. Look inside the ResetPosition function for an example -- it uses it as well.