Author Topic: Restricting the scroll-view  (Read 2367 times)

Staakman

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Restricting the scroll-view
« on: September 07, 2014, 05:10:00 AM »
Hey,

I would like to make a scroll-view which has a UIgrid as a child which holds for example 600 children.
Now I would like to restrict the scroll-view that you can only scroll until the first 100 children (cap it).

how would I create something like this?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Restricting the scroll-view
« Reply #1 on: September 07, 2014, 08:48:13 AM »
So what's the point of having 600 items if you can only scroll through 100 of them? Why not just have 100 items to begin with?

Staakman

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Restricting the scroll-view
« Reply #2 on: September 07, 2014, 09:31:20 AM »
I can think of several reasons, but I would like to limit the amount of items the player can see based on his level.

But I'll just update the grid based on his level.