Unity3d中利用UGUI的Scroll View实现滚动列表

2024-10-12 11:26:16

1、新建unity3d工程

Unity3d中利用UGUI的Scroll View实现滚动列表

3、设置scrollView的宽和高

Unity3d中利用UGUI的Scroll View实现滚动列表

5、设置每行显示的元素数量

Unity3d中利用UGUI的Scroll View实现滚动列表

7、添加测试图片

Unity3d中利用UGUI的Scroll View实现滚动列表

9、添加contentSizeFitter组件

Unity3d中利用UGUI的Scroll View实现滚动列表

11、运行效果

Unity3d中利用UGUI的Scroll View实现滚动列表
猜你喜欢