Unity3D GUI.BeginScrollView用 javaScript

来源:互联网 发布:vscode liteide golang 编辑:程序博客网 时间:2024/05/10 19:31




var scrollPosition:Vector2;function Start () {scrollPosition[0] = 50;scrollPosition[1] = 50;}function OnGUI(){scrollPosition = GUI.BeginScrollView(Rect(0,0,200,200),scrollPosition,Rect(0,0,Screen.width,300),true,true);GUI.Label(Rect(100,40,Screen.width,30),"Label");GUI.EndScrollView();}


原创粉丝点击