how to create lazer ?

can anyone suggest me, how can i make this ? i thought using a raycast but then i got stuk how to render a raycast like a lazer beam… any help would be appreciated…:slight_smile:

check out the LineRender Class
http://docs.unity3d.com/Documentation/ScriptReference/LineRenderer.html
http://docs.unity3d.com/Documentation/Components/class-LineRenderer.html

thanks ! :slight_smile:

dont forget to use raycast to prevent your lazor passing the object in the middle

yes i did use raycast and line renderer together to make a perfect lazer…thanks guys…:slight_smile: