- Home /
The question is answered, right answer was accepted
Sprite Mask to mask portion of a sprite
I'm trying to have a sprite mask that will mask this green arrow when it's over it; I'm planning to just scale the mask on the x access to have this arrow show the path of the shark when it's about to move.
I believe this is a pretty simple problem, and I've read up on sprite masks, but it's not working. Below are screenshots; first of the sprite mask object, with the sprite it's using the exact same size as the line it's going to cover up. The second shows the actual line sprite, with Mask Interaction set to "Visible Outside Mask". However, as you can see in the 1st screen, the sprite mask is directly over this line, but it's still visible. Changing the size of the mask yields no results.
I'm definitely missing something here; any help would be appreciated.
Edit: After some more googling, found out this is a known issue when using the 2D Renderer in the Lightweighth renderer pipeline. It’s fixed in LWRP 7.1.1 which is available in the pre-release of Unity 2019.3. To my knowledge there’s no way to use sprite masking while also using the 2D renderer for the LWRP in this version of Unity; time to upgrade.