public override void OnInspectorGUI() { DrawDefaultInspector(); Curve myCurve = (Curve)target; if (GUILayout.Button("AddSpline")) { myCurve.AddSpline(); } if (GUILayout.Button("DeleteLastSpline")) { myCurve.DeleteSpline(); } if (GUILayout.Button("CloseCurve")) { myCurve.CloseCurve(); } if (GUILayout.Button("ReCreateGeometry")) { myCurve.Extrude(); } if (GUILayout.Button("ClearCurve")) { myCurve.ClearCurve(); } //if (GUILayout.Button("Save")) //{ // myCurve.Save(); //} //if (GUILayout.Button("Load")) //{ // myCurve.Load(); //} }