SpriteRenderer compatible masking?

I’m trying to use a mask with my sprites, but have been unable to get past this error.

I have the shader from the wiki here: http://wiki.unity3d.com/index.php/TextureMask but when I try to apply it to a sprite I get a message that says fixed function shaders aren’t compatible with the SpriteRenderer component.

Does anybody have any idea how to do this? I have no idea when it comes to shaders…

That shader is a fixed function shader, if you want to use SpriteRenderer you will have to expand the default built-in Sprite shader and avoid using a fixed function shade.

You can download the built-in shaders here: https://unity3d.com/unity/download/archive

Check out the Unity manual for more information on the different types of shaders: Unity - Manual: ShaderLab

EDIT: I found this: Sprite masking - Unity Answers It seems like it’s what you want.