コード例 #1
0
    private void GenerateMiniMap()
    {
        var miniMap = new MiniMap {
            anchored = true
        };
        //Changed to position. width
        var cords = _graphView.contentViewContainer.WorldToLocal(new Vector2(this.position.width - 10, 30));

        miniMap.SetPosition(new Rect(10, 30, 200, 140));
        _graphView.Add(miniMap);
    }
コード例 #2
0
    private void LinkNodes(Port output, Port input)
    {
        var tempEdge = new Edge {
            output = output,
            input  = input
        };

        //? null checker
        tempEdge?.input.Connect(tempEdge);
        tempEdge?.output.Connect(tempEdge);
        _targetGraphView.Add(tempEdge);
    }
コード例 #3
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);
    }