Laser aim prefab

I would like to ask if anybody has a speed-efficient laser aim prefab to share like the one shown in the attached image.
That would be a huge help.

Thank you very, very much.

Did you search the Assets Store?

@
Yes, I did. I didn’t find a fitting one.
Thank you for pointing me at something that seems to be want I need!
The author of this asset replied that it was simple, but when I asked him if he could provide a sample, he didn’t answer anymore.
I thought that he would perhaps add this as an example to his asset, but seemingly he doesn’t.

If you want the “laser aim point” laid on the object, wouldn’t a long and narrow spotlight fit the bill? AFAIC, most straight laser assets in the store are simply line renderer with fancy textures and extra scripts to control length and width. If performance is your major concern, I think collision detection for cutting the length of the line renderer can be spared or even the line renderer (which always rotates itself to face the camera) can be replaced by a simple long mesh stripe.

Hi ifurkend,

thank you for your message.
Do you perhaps have a sample to share regarding the “long mesh stripe”?
I think the shader would be the most challenging thing, right?

You can just use the built-in quad and scale it to the desired length.
The shader would be the built-in unlit/color for maximum performance.

1 Like