예제 #1
0
        /// <summary>
        /// Load a graph asset in this window for editing
        /// </summary>
        public void Load(Graph graph)
        {
            m_Graph = graph;

            m_Canvas = new CanvasView(this);
            m_Canvas.Load(graph);

            rootVisualElement.Add(m_Canvas);

            titleContent = new GUIContent(graph.name);
            Repaint();
        }
예제 #2
0
 public EdgeConnectorListener(CanvasView canvas)
 {
     m_Canvas = canvas;
 }