GUI还可以定义一个窗口,在窗口里面进行控件的添加: using UnityEngine; using System.Collections; public class getbutton : MonoBehaviour { private Rect windowRect; void Start () { windowRect = new Rect(20, 20, 200, 200); } // Update is called once per frame void Update () { }…