Let’s see how Vectrosity can be used to create an ineractive line.
So how is this accompished ? Open a scene. Add a GuiTexture in it. Add the DraggableGUIElement script to the GUITexture. This will serve as one of the handles. Choose an appropriate texture and adjust the width, height and pixel inset in the Inspector, under GUITexture. I choose 9, 9 and 4. Under DraggableGUIElement I choose minX=0, maxX=1, minY=0 and maxX=0.75. This allows the GUITexture to be dragged by the mouse along the screen, 100% along the x axis, 75% along the y axis. Duplicate this game object and now we have two handles.
Now simply add the following script to the main camera.
// Interactive line by Bournellis Ippokratis, for Vectrosity
// Move the white handles to manipulate the line
var lineMaterial : Material;
var anchor1T : Transform;
var anchor2T : Transform;
var myLine : VectorLine;
private var linePoints : Vector2[];
function Start () {
// Set up the vector object camera (using the camera