How to render parts of sprite only inside of his parent?

Hi, I’ve been looking for a while already. All I got is things about shaders and textures. But the thing is I’m actually looking to get, for example, a circle being rendered only the parts that are inside of his parent sprite. Those aren’t GUI sprites but gameobjects.

I’m not sure if it’s possible… If not, any way i could get the same result?
Here’s what I’m trying to get:

Thanks to everyone :slight_smile:

You could use Stencil based masking to achieve this. For more details, refer:

Also a custom shader would work… using the alpha channel from the gray sphere as the overall alpha output, then overriding rgb colors where the alpha channel of the dark gray sphere is nonzero.

Hey, thanks for the answers :slight_smile:
I’m not too familiar with shaders, do you know any good tutorial about it?