Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Shifty Geezer on January 02, 2016, 02:47:28 PM

Title: How to limit scrollview contents to panel
Post by: Shifty Geezer on January 02, 2016, 02:47:28 PM
I have a scrollable list of a league table results. I want it to stop at the top on the first item, and at the bottom on the last item, rather than everything stopping at the centre. ie. With a list of 50 items and room to show 20, scrolling the list to the top shows items 1 - 20 filling the view, and scrolling all the way down shows items 3-50 filling the view.

Is this possible?
Title: Re: How to limit scrollview contents to panel
Post by: ArenMook on January 05, 2016, 06:50:26 AM
I'm going to fill in the blanks here... 3-50 means 30-50, and you are using CenterOnChild? The way that script works is it centers on a child object, predictably. Get rid of that script and the scroll view will work exactly as you want.