Draw line in game

I have this code:

Debug.DrawLine(transform.position, new Vector3(transform.position.x + (dir.x * directionDrawSmooth), transform.position.y + (dir.y * directionDrawSmooth), transform.position.z), Color.red);

how to put this line in game?

here you go buddy
Indeed the debug.Drawline is just internal but check this out: