An open API service indexing awesome lists of open source software.

https://github.com/mr-sb/infinityscroll

Infinity ScrollView for UGUI. It helps the UGUI ScrollRect to support any count items.
https://github.com/mr-sb/infinityscroll

infinity-scroll loop-scroll scrollview unity

Last synced: 10 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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](https://github.com/Mr-sB/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`:
```c#
public event Action OnItemCreated;
public event Action OnItemHided;
```

# Note
You must import [ObjectPool](https://github.com/Mr-sB/ObjectPool)(Open source) module.