Exemple #1
0
        private static void OpenWindow()
        {
            NodeBaseEditor window = GetWindow <NodeBaseEditor>();

            window.titleContent = new GUIContent("Node Base Editor");
            Current             = window;
        }
Exemple #2
0
        public static void Open(NodeScript graph)
        {
            if (!graph)
            {
                return;
            }

            NodeBaseEditor w = GetWindow(typeof(NodeBaseEditor), false, "Node Base Editor", true) as NodeBaseEditor;

            Current          = w;
            w.owner          = graph;
            w.wantsMouseMove = true;
            w.LoadData();
        }