arc reactor stop ray on object hit

Hello. I need your help!

I use arc reactor asset and i need to make the ray stop when it hits a specific object that is the target. How can i make it do this? I suppose i can use the ArcReactorHit function but i don’t know exactly how.

Thanks in advance.

Just found the answer by myself.

Here it is answered by the developer of the asset.

https://forum.unity3d.com/threads/arcreactor-procedural-ray-generator.250057/page-4#post-2164030

Pretty simple solution. Just add the object to a separate layer and add the layer in the “layers” option of the arc launcher.