예제 #1
0
        public static FlowEditorWindow Open()
        {
            FlowEditorWindow window = GetWindow <FlowEditorWindow>("Flow Editor", true);

            window.minSize        = new Vector2(fWindowMinWidth, fWindowMinHeight);
            window.wantsMouseMove = true;
            return(window);
        }
예제 #2
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            if (GUILayout.Button("Edit"))
            {
                FlowEditorWindow window = FlowEditorWindow.Open();
                window.CreateGraph(target);
            }
        }