Forcing transparency.

I’ve been trying an experiment lately, and i need to make an object that unrenders stuff that’s inside of it. ie: I have a cube and a small ball. The cube is transparent, i cannot see it. I place the ball in such a way that it intersects the cube, and the section of the ball that is being intersected should also be unrendered. I thought about using shaders, like a pseudo-opaque shader or something like that. Any ideas?

What you are looking for is called Stencil Buffer. There are many kinds of uses for it, just google “unity3d stencil buffer”.