public override void OnInspectorGUI() {//movimiento de los inspector(xyz) en la ventana Scene, seleccion de un GO y mouseOver los Inspector splineMono = target as SplineMono; if (selectedNode != null) { //DrawSelectedPointInspector(); } if (GUILayout.Button("Add Curve")) { Undo.RegisterCompleteObjectUndo(splineMono, "Add Curve"); splineMono.AddFollowingDefaultCurve(); EditorUtility.SetDirty(splineMono); } }
private void StartSpline() { SplineMono = GetComponent <SplineMono>(); SplineMono.AddFollowingDefaultCurve(); SplineMono.AddFollowingDefaultCurve(); }