How do MaskRect2Ds work?

Hi!

I have a Canvas with a GameObject on it, and a MaskRect2D on that. As a child of this object, I have an image. It is not clipped, as I would expect. I’ve messed with the size of the Mask’s RectTransform so it’s smaller than the image in question.

I can’t find much documentation on how this thing is supposed to work, and the Unity tutorial on Mask isn’t much help either.

Ok, the thing to clip must be an Image on a CanvasRenderer. I had a SpriteRenderer. Now it’s working fine.