A few months ago I started selling scripts on the Unity Asset Store. Here is my first product!
Easy Ray Generator lets you generate a simple ray beam.
Just drag ad drop the prefab and activate the laser via script, that’s it! The beam will hit any collider on its path.
The laser beam is a single texture, so easily enough to change the color or the shape of the ray.
NB: The ray will hit also colliders marked as trigger if “Queries Hit Triggers” is selected.
You can check it out on the store.