Hello,
Is there a way to have a UI Mask clip a UI element and then ignore pointer events like clicks when the pointer is over part of the clipped mask ?
In my case, I’d like to have a minimap that is round, and I’d like the EventSystem to ignore clicks that are done in the clipped area in the corners.
This is answered in the FAQ here: Frequently Asked UI Questions - Unity Engine - Unity Discussions under "How do I make UI elements have non-rectangular hitboxes?".
One thing to note if you use the per-pixel hit detection in the linked script by senritsu, make sure the import settings on your sprite have Mesh Type set to “Full Rect”, otherwise it wont work.
Thank you very much, this is perfect! I somehow missed it when I browsed through the FAQ :S