- Home /
Question by
THEAK472009 · Jul 19, 2016 at 05:29 AM ·
eventsystempaneloverdraw
Unity UI completely transparent Image draw call
Hello! I don't know how to get touch events on the UI event system without having a graphic component attached. So what I usually do is have a Panel with zero alpha but does Unity actually draw this because if that's the case then there will be a lot of overdraw. Is there a better way to get touch events with the event system?
Thanks
Comment
Answer by xuanyuan · Jul 19, 2016 at 06:38 AM
You don't need to add 'Image' in Panel, you just add a component of implement 'IPointerClickHandler', so you can access click message in 'OnPointerClick' function.
Thanks for the answer but it doesn't work. Without a graphic component none of the callbacks get called.
Your answer
![](https://koobas.hobune.stream/wayback/20220612085111im_/https://answers.unity.com/themes/thub/images/avi.jpg)