예제 #1
0
        private void GenerateMiniMap()
        {
            var miniMap = new MiniMap {
                anchored = true
            };
            var coords = _graphView.contentViewContainer.WorldToLocal(new Vector2(maxSize.x - 10, 30));

            miniMap.SetPosition(new Rect(coords.x, coords.y, 200, 140));
            _graphView.Add(miniMap);
        }
예제 #2
0
        private void LinkNodes(Port output, Port input)
        {
            var tempEdge = new Edge
            {
                output = output,
                input  = input
            };

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