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 () { }
用Handles可以直接在GUI下绘制贝塞尔 using UnityEditor; using UnityEngine; using System.Collections; public class GUIBezier : EditorWindow { Vector3 mOri; Vector3 mEnd; Vector3 mOriTang; Vector3 mEndTang; [MenuItem("GUIBezierTest/GUIBezier")] public static vo