EDIT: I’m requesting UI masking, though I came up with this so I thought i’d share it. I just wanted to help.
Essentially what I came up with is a system similar to unions. There would be two different classes for UI masking, one for what should be shown and one for what would be removed. The idea is you would create different shapes by using these two different classes and putting some inside of others for different effects.
You would be able to choose if the mask is a box or an image and if it’s an image it gets all the properties of Image UI elements relating to the image such as slicing.
It would end up being something like this (sorry for the crappy image, i’m not the best at photo editing AND I rushed it)
The red part is the negative class and it’s parent is the dark blue positive one.
Hierarchy:
Image/Frame
-Blue 1
-Blue 2
—Red (Negative)
The different elements are numbered in the top half.
I hope this makes sense, I don’t really know how else to explain it.