Hello everybody! I'd like to know how to draw lines via script to make a solid figure, for example a cube, a triangle or a circle. After this I'd like to "extrude" the shape and give it a size (thickness).
I found Handles.Drawline on the help and this is the code I wrote:
var dot1 : Vector3;
dot1.x=0;
dot1.y=0;
dot1.z=0;
var dot2 : Vector3;
dot2.x=100;
dot2.y=0;
dot2.z=0;
function Start()
{
var linea = Handles.DrawLine(dot1,dot2);
}
This gives me an error: Unknown identifier : Handles. Where is my error?
And then when I finally create my line and my shape how do I extrude it? Thank you very much.