line drawing

hey there.
can someone tell me the best way to draw lines in unity 1.5 ? i feel like i read somewhere that line drawing was made a bit easier?

what i have is a 2d game that i wanted to shoot out an array of lines when a bullet hit an object. ( very many lines at once )
can anyone tell me the best way to do this that isnt too stressful on the processor?

thanks much
db

Heya deadbug,

Check out the LineRenderer in the script reference, that’s what I think you’re looking for. I was using that with my game at first to dynamically draw lines between objects for a puzzle game, until I decided to use different mechanics.

Also, if you search on LineRenderer here in the forums you should find some other good info and bits of code besides what’s in the script reference.

Good luck!

:smile: