Drawing a line

Hi guys,

how can I draw a line in 3D space that is seeable ingame. Or it can be 2D, but than I need to ovverride with every object… So what I need is drawing lines as “background” or as “skybox”… is it possible?

http://www.starscenesoftware.com/vectrosity.html

–Eric

Thanks, it works with iOS platform?

Yes I use it in my ios game/app. It is fantastic. It can do 2D, 3D, even points, and even animate the lines, and use any texture. Even nurbs style curves as well.

Frankly, it should be unity baseline command set but the author is not greedy, it is very cheap. I purchased from the starscene website, and I now get email updates whenever it is updated.

Grab the pro version simply because the indie version is too cheap lol.

If you have pro, you can use the GL class to draw lines, if not you just define a triangle with 2 vertices representing your line and the 3rd vertice to be fixed near one of the other 2 vertices.
Make a simple color material for your line such as this:

Shader "Aubergine/Line" {
	Properties {
		_Color ("Tint Color", Color) = (1,1,1,1)
	}
	SubShader {
		ZWrite Off
		ZTest Always
		Pass { Color [_Color] }
	}
}

and apply it to your triangle. There you have your line.