Need the user to be able to draw lines on the screen.

Hi everyone. I have been searching and searching for an answer to my problem high and low and have come up blank. I really hope someone here can point me in the right direction.

I am working on part of a program where the user has to draw on the screen and I have to check their input to make sure it is correct. I actually have all of this working. However the person who owns this program is not happy with my input line. I am using open GL and it draws an itty bitty line which apparently looks like an etch-a-sketch. I have spent the day trying to make my lines thicker and have had zero luck. i have tried using vectrosity and for some reason the lines get wider on the x-z axis and not the x-y axis and I’m pulling my hair out trying to fix it.

I would appreciate any suggestions anyone might have. It doesn’t have to be vectrosity and I am using unity pro. Any simple (if possible) ways to have user inputted thicker lines would be help me so much.

Does it need to be an actual line? Or can you cheat by drawing a filled rectangle?

If you use GL.Begin(GL.QUADS);, you can provide rectangle points.

You won’t make a THICKER line. A line is 1d, so “thicker” doesn’t make sense, that’d make it 2d.

Check out quads though, you can definitely fill in a rectangle. It’d look something like:

        GL.Color (color);
        GL.Begin (GL.QUADS);
        GL.Vertex3 (position.x, position.y, 0);
        GL.Vertex3 (position.x + position.width, position.y, 0);
        GL.Vertex3 (position.x + position.width, position.y + position.height, 0);
        GL.Vertex3 (position.x, position.y + position.height, 0);
        GL.End ();

Not quite it, but you get the idea. Here’s the documentation on quads: Unity - Scripting API: GL.QUADS