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.
- Host: GitHub
- URL: https://github.com/mr-sb/infinityscroll
- Owner: Mr-sB
- License: mit
- Created: 2020-05-26T08:39:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-05T07:51:05.000Z (over 5 years ago)
- Last Synced: 2025-02-17T09:34:40.611Z (over 1 year ago)
- Topics: infinity-scroll, loop-scroll, scrollview, unity
- Language: C#
- Size: 44.9 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.