游戏 scrollView

时间:2025-04-06 14:07:13
using UnityEngine;
using System.Collections; public class LLL : MonoBehaviour { Vector2 scrollPosition; // Use this for initialization
void Start () {
scrollPosition [] = ;
scrollPosition [] = ;
} // Update is called once per frame
void Update () { } void OnGUI()
{
scrollPosition = GUI.BeginScrollView (new Rect (, , , ), scrollPosition, new Rect (, , Screen.width, ), true, true); GUI.Label (new Rect (, , Screen.width, ), "测试滚动试图,测试滚动试图,测试滚动试图,测试滚动试图。"); GUI.EndScrollView ();
}
}