I want to create an object that connects two points

I want to create an object that connects two points. What can I use it, I have to look at what issues

58179-scene2.jpg

Add the LineRenderer component to a GameObject. You can adjust the line in Update() like this:

    public Transform other;

    void Update() {
        LineRenderer line = GetComponent<LineRenderer>();
        if (line != null)
        {
            line.SetPosition(0, this.transform.position);
            line.SetPosition(1, other.position);
        }
    }

I worked on, but I can only draw the line,
Can be use for rendering 3D objects or material with this feature,
I want to do such as fishing line or hook

Look what I have on this topic