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); }
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); }
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); }