Lines.Add

static void Add(Vec3 start, Vec3 end, Color32 color, float thickness)

   
Vec3 start Starting point of the line.
Vec3 end End point of the line.
Color32 color Color for the line, this is embedded in the vertex color of the line.
float thickness Thickness of the line in meters.

Adds a line to the environment for the current frame.

static void Add(Vec3 start, Vec3 end, Color32 colorStart, Color32 colorEnd, float thickness)

   
Vec3 start Starting point of the line.
Vec3 end End point of the line.
Color32 colorStart Color for the start of the line, this is embedded in the vertex color of the line.
Color32 colorEnd Color for the end of the line, this is embedded in the vertex color of the line.
float thickness Thickness of the line in meters.

Adds a line to the environment for the current frame.

static void Add(Ray ray, float length, Color32 color, float thickness)

   
Ray ray The ray we want to visualize!
float length How long should the ray be? Actual length will be ray.direction.Magnitude * length.
Color32 color Color for the line, this is embedded in the vertex color of the line.
float thickness Thickness of the line in meters.

Adds a line based on a ray to the environment for the current frame.

Examples

Lines.Add(new Vec3(0.1f,0,0), new Vec3(-0.1f,0,0), Color.White, 0.01f);
Lines.Add(new Vec3(0.1f,0,0), new Vec3(-0.1f,0,0), Color.White, Color.Black, 0.01f);
Lines.Add(new LinePoint[]{ 
    new LinePoint(new Vec3( 0.1f, 0,     0), Color.White, 0.01f),
    new LinePoint(new Vec3( 0,    0.02f, 0), Color.Black, 0.005f),
    new LinePoint(new Vec3(-0.1f, 0,     0), Color.White, 0.01f),
});