Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: GroovyGray on April 21, 2014, 09:48:51 PM

Title: Scroll View Credits
Post by: GroovyGray on April 21, 2014, 09:48:51 PM
I am trying to create an auto-scrolling credits scene, where you can also drag up and down the scrollview as you see in so many games. So far everything is working great except for one issue. I am tweening the ScrollView itself, and the tween pauses momentarily whenever a touch is detected. Problem is, the clipping area moves along with the scrollview, and I end up not being able to scroll back up the list.

Should I be moving something other that the scrollview? Is there any way to keep the scrollview from moving? Anyone know a better way of doing this?
Title: Re: Scroll View Credits
Post by: ArenMook on April 22, 2014, 04:53:22 AM
I would advise you to do it like AoW3 -- create a scroll view, and slowly animate the scroll bar's value so that it scrolls it. Even without the scroll bar you can do it by adjusting UIPanel's clipOffset gradually.

I am not entirely sure what you mean by pausing on a touch. No collider = no touch responses. Scroll view dragging isn't done by the scroll view. It's done by UIDragScrollView, which is a separate script attached to one or more colliders.
Title: Re: Scroll View Credits
Post by: GroovyGray on April 22, 2014, 10:32:55 AM
Thanks Aren! Animating the scroll bar value works great.