public override void OnInspectorGUI() { ShapeEditorUtil.DefaultInspectorGUI(this); GUILayout.Label("Scene视图操作:"); GUILayout.Label("按Shift点击在鼠标位置创建点"); GUILayout.Label("按Control点击红色的点删除"); var shape = target as PolyShape; if (shape.Points.Count < 3) { GUILayout.Label("多边形的点不能少于3个", "Wizard Error"); } }
public override void OnInspectorGUI() { ShapeEditorUtil.DefaultInspectorGUI(this); }