I mean, I just used the LineRenderer. With these two lines of code:
link.GetComponent<LineRenderer>().SetPosition(0, transform.position);
link.GetComponent<LineRenderer>().SetPosition(1, target.position);
(though, I don't know if this would work in 3d.)