How can I allow an object to be seen through another object, such as an x-ray?

Hi @WDRK23,

Let me clarify a little bit here.

Your character will need to have a translucent material with the code I sent above.

The sphere will need to be set to “Render Custom Depth”

There is no postprocess material needed.

Custom depth is an additional depth pass- it does not replace the default depth pass unless you overwrite it. There are a few reasons you need to do this within the actual character material:

  • You have found the main issue, which is that there is no way to specify which objects to see through. Technically, there is probably a way around this with Custom Stencils, but it would be very messy.
  • Any method other than the one I sent leads to the interior sphere appearing as a blob of color, like you’re seeing now. This is because of the character is opaque, no light or color information can pass through to the sphere- only the shape. If you want a full detailed mesh to pass through, the character needs to have translucency.