Unity's Raycast functions has a parameter you could use to raycast to a particular GameObject. You can also use that parameter to ignore particular GameObject.
simple.odata
burp
storm-topology
common-workflow-language
java-native-library
database-migration
qtreeview
horizontallist
zoom-sdk
lettuce
microsoft-graph-webhooks
preorder
4g
greybox
proxy-object
scte-35
crontab
multi-camera-api
shutterstock
xms
splines
redlock
time-travel
xamarin.shell
date-patterns
forall
fixed-size-types
google-openidconnect
corespotlight
tidyr