Raycast goes throught objects [C#]

Hi everybody !

I have a question : can we make a Raycast from an object A to an object B while checking a boolean on all objects between A and B ?

Thanks, xyHeat

Also has the advantage of being the fastest of all raycasts if you have to make more than 1 call.