Example #1
0
        void GenerateMiniMap()
        {
            var miniMap = new MiniMap {
                anchored = true
            };

            miniMap.SetPosition(new Rect(10, 30, 200, 140));
            graphView.Add(miniMap);
        }
Example #2
0
        void LinkNodes(Port output, Port input)
        {
            var edge = new Edge
            {
                output = output,
                input  = input
            };

            edge?.input.Connect(edge);
            edge?.output.Connect(edge);
            _targetGraphView.Add(edge);
        }