Exemplo n.º 1
0
        private void GenerateMiniMap()
        {
            var miniMap = new MiniMap {
                anchored = true
            };
            var cords = _graphView.contentViewContainer.WorldToLocal(new Vector2(this.maxSize.x - 10, 30));

            miniMap.SetPosition(new Rect(cords.x, cords.y, 200, 140));
            _graphView.Add(miniMap);
        }
        private void GenerateMiniMap()
        {
            var miniMap = new MiniMap {
                anchored = true
            };

            miniMap.SetPosition(new Rect(10, 30, 200, 140));
            _graphView.Add(miniMap);
        }
Exemplo n.º 3
0
        private void LinkNodesTogether(Port outputSocket, Port inputSocket)
        {
            var tempEdge = new Edge()
            {
                output = outputSocket,
                input  = inputSocket
            };

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