Is there any way to change the thickness of the GL.Lines in Unity? I drew all my lines using GL and now I want dome of them a little thicker.
Does anyone know a way?
Is there any way to change the thickness of the GL.Lines in Unity? I drew all my lines using GL and now I want dome of them a little thicker.
Does anyone know a way?
You can draw quads rather than lines, or use Vectrosity instead.
–Eric
Is that really necessary when i want a line to be 2 pixels instead of 1 pixel?
GL.LINES doesn’t really have any options. That’s the main reason I made Vectrosity, so I could have better control over lines and just pass in “2” instead of “1” when I want a 2-pixel-thick line.
–Eric
Hi guys, I just published a package that draws lines (and many other shapes) in 2D, including line thickness greater than 1.
It’s a script library (including full source code) that relies on GL calls, so it’s pretty quick. It includes: custom shapes, textures, dashed lines, all with variable thickness and orientation, and also allowing drawing text with Bitmap Fonts.
It’s 4.99$ but if there’s any student around, or anyone that can’t afford it, I´ll be glad to provide free vouchers. Just feel free to contact me…
Link: 2D Shaper Library | GUI Tools | Unity Asset Store
Some examples below…
Cheers
Hey,
Is it too late to ask for a student discount?