line renderer

If I want to draw a line between two moving game objects (the line is dynamic too), can I use line renderer. If I can, how?

Sure, you can use a LineRenderer. You just have to update the positions of the line’s vertices in every frame.

public Transform obj1;
public Transform obj2;
LineRenderer line;

// Use this for initialization
void Start () {
	line = gameObject.GetComponent<LineRenderer> ();

// Update is called once per frame
void Update () {
	line.SetPosition (0, obj1.position);
	line.SetPosition (1, obj2.position);