I know how to make the raycast only check one specific layer, but the objects on the layer are deactive during one of the raycasts that I need.
-
Is there a way to make the raycast hit deactive objects in just that one raycast,
-
Should I change the objects on that layer to 0 alpha (fully transparent), do the raycast, hide the objects, then set alpha back to normal,
-
Or is there another solution that’s better?