How might I clip an object that is behind another objects collider, but the object with a collider doesn’t have a mesh renderer? Like an invisible box that clips objects behind it normally as if it was visible?
I hope this is clear enough, thanks!
How might I clip an object that is behind another objects collider, but the object with a collider doesn’t have a mesh renderer? Like an invisible box that clips objects behind it normally as if it was visible?
I hope this is clear enough, thanks!
Colliders have no relation to any rendering.
What you can do is use a mesh renderer with the depth mask shader. It doesn’t render anything into the color buffer but only into the depth buffer.