In this video we see how to use an image with alpha channel to mask a Sprite in Unity, in this case we work with the Sprite Renderer component.
Basically we need to setup three things, first the image to be masked has to be a child to the mask image and the second thing is that the mask image has to have a Sprite Mask component assigned to it and assign the image to use a mask in that component and third, configure how the sprite should behave with the mask, it can be visible always, only visible inside the mask or be visible outside the mask.
____________________________________________________________
Watch the following repository where I'll be sharing solutions and examples for Unity
👇
https://github.com/GameDevTraum/GDT-S...
https://gamedevtraum.itch.io/
/ gamedevtraum
____________________________________________________________