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实现滚动列表
© 2025 长短途
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com