public static FlowEditorWindow Open() { FlowEditorWindow window = GetWindow <FlowEditorWindow>("Flow Editor", true); window.minSize = new Vector2(fWindowMinWidth, fWindowMinHeight); window.wantsMouseMove = true; return(window); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); if (GUILayout.Button("Edit")) { FlowEditorWindow window = FlowEditorWindow.Open(); window.CreateGraph(target); } }