NGUI制作可滚动的文本框
2015-10-17 本文已影响1809人
joshuaAS
1.首先创建一个UI Root
2.选择UI Root右键 Create 选择Scoll View创建。
3.Scroll view的大小是可以调节的,调节为你需要的适当大小
4.

5.创建一个Label作为Scroll View的子物体,使其宽与Scoll view相同,同时设置OverFlow为Resize Height.
6.为Label添加Box Collider,然后为其添加Drag Scroll View,并将之前创建的Scroll View拖到其相应位置

然后将Label与Scroll View对齐(Label的上边与Scroll View上边对齐 左右对齐)
8.建一个滚动条,可以用NGUI已经建好的,拖到视图上,然后拖到Scroll Bars的Vertical上就完成了

拖到Scroll Bars的Vertical上就完成了