- Home /
Question by
Brickush · Jul 16, 2015 at 02:59 PM ·
uimouseclickevent triggering
Custom UI element click/touch area
I would like to have a UI element that reacts to click/touch events on a custom area (e.g. a circle or a rectangle with a cutout). My first idea was to create my own mouse/touch handler for a regular UI element but I have no idea how to do that.
So, how could I make a custom clicking/touch area on my UI element?
Comment
I believe the most direct solution involves the accepted answer to this similar question I asked:
http://answers.unity3d.com/questions/816861/46-ui-image-is-capturing-clicks-how-to-prevent.html
This may also be helpful:
http://answers.unity3d.com/questions/821590/unity-46-how-to-raycast-against-ugui-objects-from.html
Also this:
http://answers.unity3d.com/questions/802240/how-to-let-handled-events-raycasts-pass-through.html