Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


LINE_STRIP

Mode for GL.Begin: draw line strip.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public const int LINE_STRIP = 2

Remarks

Draws lines between each vertex passed, from the beginning to the end. If you pass three vertices, A, B and C, two lines are drawn: one between A and B, and one between B and C.
To set up the screen for drawing in 2D, use GL.LoadOrtho or GL.LoadPixelMatrix. To set up the screen for drawing in 3D, use GL.LoadIdentity followed by GL.MultMatrix with the desired transformation matrix.
Additional Resources: GL.Begin, GL.End.