Пример #1
0
        /// <summary>
        /// Generates a mini map on the top-left sideof the graph editor.
        /// </summary>
        private void GenerateMiniMap()
        {
            var miniMap = new MiniMap
            {
                anchored = true,
            };

            miniMap.SetPosition(new Rect(10, 40, 200, 140));
            _graphView.Add(miniMap);
        }
        private void LinkNodes(Port output, Port input)
        {
            var tempEdge = new Edge {
                output = output, input = input
            };

            tempEdge?.input.Connect(tempEdge);
            tempEdge?.output.Connect(tempEdge);

            _targetGraphicView.Add(tempEdge);
        }