How do I draw lines that appear in my game similar to the ones in Debug.DrawLine()?

For some reason, the LineRenderer’s lines are not smooth at all. After researching the issue, it appears I’m using the LineRenderer incorrectly, but I still don’t understand its purpose. For the game I’m making, I’ve been using the Debug.DrawLine() to draw my lines even though it won’t appear in the actual game. I was wondering whats the best to replicate the Debug.DrawLine()'s lines. I basically want to draw a series of hexagons.

Here’s what the Debug.DrawLine’s hexagons look like:

They are very smooth and fit nicely together. Now here’s what I get from the LineRenderer:

Hi, you can use the MeshTopology class to define a set of lines (and other primitives) and assign them to a mesh.