I want to Raycast to a plane which has many objects on it but want the raycast to pass through those objects. However, I want to use OnPointerEnter and OnPointerExit on those objects (to reduce their alpha and make the part of the plane behind them more visible) so I cannot add them to the Ignore Raycast layer. How do I go about doing this?
If it’s they one collider explicitly, you can do a.
collider.Raycast();
where collider is any collider type
Not sure what you mean by a “custom raycaster”, but if you want a raycast that continues through all colliders in its path rather simply returning the first collider hit, you can iterate through the array returned by Physics.RaycastAll.