Setting Sprite renderer mask property to 'visible inside mask' makes the Sprite image dissappear regardless of a mask.
I added a sprite to the scene and I set the 'visible in mask' property. I created a mask. And hovered it over the sprite it doesn't show anything. setting it to 'visible outside mask' also didn't work. It's like the sprite just vanishes as soon as I set 'visible in mask' and is unaffected by 'visible outside mask'.
Is there supposed to be some 'Disable Depth and Stencil' setting? I can't find that either, I'm on Unity 2019.4.4f1.
Answer by kvoththebloodless · Aug 12, 2020 at 07:06 PM
Turns out in Unity the sprite mask needs to be outside the canvas to be able to work on the sprites inside the canvas. For some reason. At least that's what it seemed based on my experimentation. I was trying to mask buttons on a scroll and the sprite mask was on the viewport- didn't work. But when I pulled the sprite mask out of the canvas it managed to mask the sprites properly.
Your answer
Follow this Question
Related Questions
Hexagon shaped sprite 1 Answer
Make Sprites Invisible without Disabling SpriteRenderer and without Masking 2 Answers
Why my c# for load sprite in spritemask does'n work? 0 Answers
How can I cast shadows onto sprites? 0 Answers
How to Cut Sprites In Game 0 Answers