title: Drawing a line using GL.LINES with Unity3d
body: <pre><code>for (int x = 0; x &lt; k; x++)
  {
      Debug.DrawLine(mapping[x].first, mapping[x].second);
  }
  Debug.DrawLine(_currentNode.Position, movement);
  </code></pre>
  
  <p>A few notes :
  <code>mapping</code> is a dictionary with a tuple of <code>Vector3</code> coordinates.
  the <code>for</code> loop is used to render the lines from the coordinates already visited and <code>_currentNode</code> is the position from which the current line gets drawn and it gets drawn to <code>movement</code> where <code>movement</code> is a <code>Vector3</code> which gets displaced over time.</p>
  
  <p>What I would like to accomplish in my game is the following : I want to draw lines that are getting drawn with this method but these are only available in debug build.</p>
  
  <p>For a few days I have been trying to draw a line with GL.LINES . I can't see any line drawn on my screen. I can't use LineRenderer. Where am I doing it wrong? The line gets shown with the Debug.DrawLine but its only on my debug build and not in my game. The line which GL.Begin() should generate isn't showing.</p>
  
  <p>It's a 2D game.</p>