Super ScrollView for UGUI 2.2
Overview
LoopListView2 is a component attaching to the same gameobject of UGUI ScrollRect. It helps
the UGUI ScrollRect to support any count items with high performance and memory-saving.
For a ScrollRect with 10,000 items, LoopListView2 does not really create 10,000 items, but
create a few items based on the size of the viewport.
When the ScrollRect moving up, for example, the LoopListView2 component would check
the topmost item’s position, and once the topmost item is out of the viewport, then the
LoopListView2 component would recycle the topmost item, and at the same time check the
downmost item’s position, and once the downmost item is near the bottom of the viewport , the
LoopListView2 component would call the onGetItemByIndex handler to create a new item and
then positon the new created item under the downmost item, so the new created item becomes
the new downmost item.
Every item can use a different prefab and can have different height/width.
There are several examples to help you learn the LoopListView2 component, in the folder
with path : Assets -> SuperScrollView -> Demo -> Scenes. And Menu scene is the entry.
The following picture is what a TopToButtom arranged scrollrect looks like:
In the above picture, the scrollrect have 10000 items, but in fact, only 7 items really created.