/InfinityScroll

Infinity ScrollView for UGUI. It helps the UGUI ScrollRect to support any count items.

Primary LanguageC#MIT LicenseMIT

InfinityScroll

Infinity ScrollView for UGUI. It helps the UGUI ScrollRect to support any count items.

Feature

  • Support any count items.
  • Support Vertical/Horizontal/Gride Layout Group.
  • Auto hide invisible items.
  • Use ObjectPool(Open source) to cache items.

Usage

  • Add Virtual(Vertical/Horizontal/Gride)LayoutGroup and UIList to the ScrollRect's content gameobject.
  • Get UIList component and call InitListView(int len) method to generate items.
  • There are two event you can listen in UIList:
public event Action<int, RectTransform> OnItemCreated;
public event Action<int> OnItemHided;

Note

You must import ObjectPool(Open source) module.