© 1999-2048 dssz.net 粤ICP备11031372号
[其它] Unity使用ScrollRect制作翻页
说明:本文实例为大家分享了使用ScrollRect制作翻页的具体代码,供大家参考,具体内容如下 1.标准的层级结构 ScrollRect->ViewPort->Content,Viewport负责显示区域的大小一般和Mask一起配合使用,Content使用Layout来布局,如果想使用代码来自动定位显示位置需要在Content加上Content size filter. 2.ScrollRectHelper using UnityEngine; using UnityEngine.UI;<weixin_38654348> 上传 | 大小:37kb