Author Topic: Level Selection scrollview  (Read 1689 times)


  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
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.