More demos

Also check out the line drawing demo. Lines can be any number of pixels thick, and there’s an option to fill in corners.
Finally there’s the scribblecube demo, which fills the screen with hundreds of rotating, glowing line segments.

|
More demos ![]() Try Tank Zone — it’s a retro Battle Zone remake, with increasing numbers of tanks that’ll keep you on your toes! The complete project is included when you buy Vectrosity.
Also check out the line drawing demo. Lines can be any number of pixels thick, and there’s an option to fill in corners. Finally there’s the scribblecube demo, which fills the screen with hundreds of rotating, glowing line segments. How it works ![]() Vectrosity uses a mesh-based solution, with a separate camera overlay. This is handled automatically and is transparent to you, the user. Once the line is drawn, it stays on-screen permanently until changed or removed. To make a simple line, just call the Vector.SetLine function with a color and at least two points: Vector.SetLine (Color.white, Vector2(100, 50), Vector2(250, 120)); If you want more options, you can make a VectorLine object. First create some points in a Vector2 or Vector3 array, which can be any size up to around 16,000 elements (Vectrosity uses screen space for 2D coordinates and world space for 3D coordinates): var linePoints = new Vector2[ Vector2(0, 0), Then make a VectorLine object, giving it a name, the points, a material, and the line width in pixels (there are more optional parameters, but these are the basics): var myLine = new VectorLine ("Line", linePoints, lineMaterial, 2); ![]() Vector.DrawLine (myLine); Presto, you have a 2-pixel-thick line that extends from one corner of the screen to the other. You can update the points and call Vector.DrawLine again whenever you like. You can also pass the transform of an object to DrawLine in order to move or rotate lines without having to recompute them. This is just the start...there are lots more options and functions available to make things easy and to accomplish various effects. Vectrosity is written in C#, but you don’t have to know C# to use it, and the complete functionality is available in any language. The best solution for drawing lines in Unity! Vectrosity has much more control and flexibility than the LineRenderer, plus it's better than GL.LINES and doesn't need Unity Pro. Draw all sorts of vectors, grids, graphs, and just plain lines, fast and easy, in 2D or 3D. Version 1.5 now available! You'll get an update notice if you bought an older version. Get Vectrosity now
![]() Vectrosity
} } } ![]() The indie version of Vectrosity is just $19.95, and you can use it in as many projects as you like. The source code isn’t locked away in .dlls, so you can alter it as you see fit. The only thing you shouldn’t do, of course, is redistribute it — I have to eat and pay bills somehow! The pro version of Vectrosity is $34.95. You should buy this if you’re representing a company rather than an individual, or are a pro user in some capacity (how “pro” is defined is up to you), or are just feeling generous. The functionality is the same for both versions. All updates are free. Click one of the buttons below, and you’ll be taken to a secure page where you can pay through PayPal (account not required), using any currency, and get your copy of Vectrosity in seconds (eCheck payments will take longer to clear). Please make sure your email filtering allows mail from starscenesoftware.com. ![]() Questions, suggestions, comments? You can use the Contact page on this site, or better yet leave a message in the Vectrosity topic on the Unity forums. } } } } } } Grid example ![]() Here’s another complete script example of a dynamic grid using Vectrosity, where a GUI slider controls the pixel size of each grid square. Try it out now by dragging the slider, below. Vectrosity: US$19.95 Vectrosity Pro: US$34.95 |
||