作用:一个滚动列表
xxxListPanel面板
|-Slider滚动条
|-ScrollRect滚动范围
|-|-Layout布局
添加 - UI - Image - 命名ScrollRect - 作为滚动范围(可能与xxxListPanel相同)
Image里添加 - 组件Scroll Rect - 滚动组件
Image里添加 - 空物体 - 命名Layout布局
Layout空物体里添加 - 组件layout Group(有纵向、横向、双向)
Layout - 组件layout Group - Childen Force Expand扩展方式的Width/Height取消 - 得到Item子方框跟着一个一个,否则会平分
调整ScrollRect、Layout大小一致,手动调就可以
Layout里添加 - Image - 命名UserItem/RoomItem
ctrl + D复制多个Item测试
Layout - 组件layout Group - Spacing上下间隔
ScrollRect里添加 - 组件mask - 遮罩
ScrollRect里添加 - 组件Image - 可以设置透明
ScrollRect - 组件Scroll Rect - Content - 把Layout拖入
ScrollRect - 组件Scroll Rect - Horizontal左右移动/Vertical上下移动,固定方向
在ScrollRect同级/xxxListPanel下 - 添加Slider滚动条
Slider滚动条 - Direction方向 - 下->上 上->下 左->右 右->左
ScrollRect滚动范围 - Horizontal Scrollbar左右移动滚动条/Vertica Scrollbar上下移动滚动条 - 拖入