示例#1
0
        public static void EditGraph(DashGraph p_graph, string p_graphPath = "")
        {
            SelectionManager.ClearSelection();

            EditorConfig.editingRootGraph  = p_graph;
            EditorConfig.editingGraphPath  = p_graphPath;
            EditorConfig.editingGraph      = GraphUtils.GetGraphAtPath(p_graph, p_graphPath);
            EditorConfig.editingController = null;
        }
示例#2
0
        public static void EditController(DashController p_controller, string p_graphPath = "")
        {
            SelectionManager.ClearSelection();

            if (p_controller != null)
            {
                EditorConfig.editingRootGraph  = p_controller.Graph;
                EditorConfig.editingGraphPath  = p_graphPath;
                EditorConfig.editingGraph      = GraphUtils.GetGraphAtPath(p_controller.Graph, p_graphPath);
                EditorConfig.editingController = p_controller;
            }
            else
            {
                EditorConfig.editingGraph = null;
            }
        }
示例#3
0
        public static void UnloadGraph()
        {
            SelectionManager.ClearSelection();

            EditorConfig.editingGraph = null;
        }