I'm working on a 2D simulation game and have one object floating on top of another one. I have a Sprite Mask on the object on top to achieve cutout like effect so the background is visible where the Sprite Mask is. It looks like this:

Cutout overlay

I want to add a border around that cutout, that would automatically blend with the border of the bottom object when it reaches the sides. Similar like a Subtract mode in Sketch (or other vector-based graphics editor):

enter image description here

How can I achieve this? The desired outcome would look like this:

enter image description here

Thank you!



You must log in to answer this question.

Browse other questions tagged .