Unity组件scroll view的自动伸缩

时间:2024-04-08 19:38:34

scroll view鼠标拖动会滑动,解决的办法就是取消勾选horizontal vertical,根据需要进行设置。
Unity组件scroll view的自动伸缩
scroll view的item个数不定,所以滑动条也要随之变化。
item要自动排列加个grid layout group再配置一下,比如设置列数constraint->fixed row count ->5。
需要自动伸缩就需要加上content size Fitter组件再配置一下。
Unity组件scroll view的自动伸缩