Test if 3D object is occluded from camera

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By path9263

I am wondering if there is a way to test if a 3D object is fully hidden from the camera so that I can make the objects in front of it become transparent or do some kind of outline shader to make the hidden object still visible.

Thank you!