Is it possible to make a spotlight. If it is possible then tell how to make it orthographic. Because I need a laser for my gun
1 Answer
1Your standard assets come with projectors, so you could use the Blob Light Projector to make a dot on the surface you’re aiming at (there’s a tickbox for orthographic as well).
Otherwise go with what asafsitner suggested, but rather than ‘bones’ (not sure if this is what you meant) just use a Line Renderer’s vertex positions and a Raycast.
I personally use a mesh for lasers. Make an X plane with two bones, then cast a ray forward and place one bone at your gun's laser marker and the other at the ray's hit point. Make it have an additive particle material, possibly with a 'dirty' scrolling texture (just play with the offset values) to give it a more 'live' look. If you just want to add a red dot at the marker's position, why not use a tiny point light and again place it at the ray's hit point?
– asafsitner