Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - gitesh436

Pages: [1]
NGUI 3 Support / Level Selection scrollview
« on: December 08, 2017, 02:25:10 PM »
I have a levelselection scrollview in which hierarchy looks like
10 widgets as grid child
Only 3 widgets are shown in the scrollarea while scrolling

Actually I want this behaviour, when I'm scrolling from left to right,leftmost element(gridChild) in the scrollarea should move to the center of scrollarea and when I'm scrolling from right to left rightmost child should move to the center . I have tried achieving this behaviour using centerOnChild script but in that case element that is nearest to the center, moves to the center. Centeronchild script doesnt take into account in which direction Im scrolling.
If I'm not clear with my problem description,this levelselection scrollview is exactly what you see in the levelSelection in any game. Kindly tell me what I'm doing wrong and what should I do to achieve the required behaviour.

Pages: [1]