Hi,
Forexample i have 2 point in screenSpace in 100,100 pixel,and another one is in 200,200 pixel.how can i draw a line from 100,100 to 200,200?
Thanks
Hi,
Forexample i have 2 point in screenSpace in 100,100 pixel,and another one is in 200,200 pixel.how can i draw a line from 100,100 to 200,200?
Thanks
Check out this script on the unifycommunity wiki which employs some tricks to draw a line in 2D. Oddly enough the GUI system in Unity does not provide great support for this out of the box. If that is not what you are looking for there are a couple of different scripts out there so have a look around.