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.
class-fields
bootstrap-icons
onpremises-gateway
jacorb
class-decorator
joyent
window.open
screwdriver-cd
jquerydatetimepicker
procrustes
reactjs
core-data
mediaprojection
revenuecat
macfuse
reference-source
installshield
ocrspace-ocr-api
systrace
module-export
tesseract
zero-copy
mapbox-gl-draw
android-wifi
join-hints
tensorflow-probability
uibezierpath
caph-framework
googlebot
random-effects