基于UGUI的动态滚动列表,主要支持以下功能:
- 继承自UGUI的
SrollRect
,支持ScrollRect
的所有功能; - 使用对象池来管理列表元素,以实现列表元素的复用;
- 支持一行多个元素或一列多个元素;
- 可使用不同尺寸的列表元素;
- 列表数据变化后动态刷新列表元素;
用法详见工程中附带的示例,场景Scene
及脚本TestScript
。
A DynamicScrollView component based on UGUI that has the following features:
- Extented from
SrollRect
(UGUI class), so it has featuresScrollRect
has; - Scroll items are managed by an object pool so they can be recycled and reused;
- More than one items in one row (or column) is supported;
- Items can have different sizes;
- Items can be updated when scrollview data change;
For more details please run Scene
or view TestScript
.