Sprite masks not working - what am I missing?
Hi folks. Thanks in advance for your help. Sprite masks have been kicking my butt for 2 days now.
Here is what I am trying to do. I have a button background sprite and a version that is supposed to look like the 'lit' version of it, which is supposed to fill from the bottom gradually as a power variable accumulates.
I have it set up right (I think). The 'unlit' version is visible outside the mask and the 'lit' version is set to be visible inside the mask. The mask is a simple gradient I made in Photoshop and it is dragged into a SpriteMask component as usual.
The issue is, I don't get any change in the sprite mask shape as I move Alpha Cutoff from 0 to 1. I have seen working examples of this where the orange outline of the sprite mask moves dynamically as you change the values in the Inspector but mine doesn't change. If I move the sprite mask manually in the scene, it cuts of properly, but without access to that behaviour in Alpha Cutoff, I obviously can't move it through code.
Do any of you Unity experts have any insight into what I might be doing wrong? Might it be my gradient? Is it about the parenting of the objects ( I have tried it with the mask as a child of the sprite and with the mask sharing a parent with the sprite)? The order in layer (the lit version is in front of the unlit version but I have tried both ways)? If someone more expert than me could give me some insight into this, I'd be super grateful.
Here is a link to an empty project with the problem set up. If someone had time to take a look, that would be amazing. I'm stalled.
I appreciate any help you can give