- Home /
Question by
dzed · Jul 11, 2017 at 12:38 PM ·
sceneraycastingselection
Is it possible to detect if a object is occluded without using raycasting?
I have a scene with three boxes where the two are occluding the third. Is there a way to detect how much of the box is occluded by the other two? without using a ray casting or colliders on the other two.
Comment
Answer by dzed · Jul 11, 2017 at 02:20 PM
@TheReEvolutions yes it seems that if the box is slightly visible then the Renderer.isVisible flag is set to true. What I am interested in how much of the box is occluded by the other two boxes
Your answer
![](https://koobas.hobune.stream/wayback/20220612130010im_/https://answers.unity.com/themes/thub/images/avi.jpg)