Ejemplo n.º 1
0
        public static bool OnOpen(int instanceID, int line)
        {
            NodeScript nodeGraph = EditorUtility.InstanceIDToObject(instanceID) as NodeScript;

            if (nodeGraph != null)
            {
                Open(nodeGraph);
                return(true);
            }
            return(false);
        }
Ejemplo n.º 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();
        }