I have a button underneath a panel with image and mouseover event of that button activates when I place mouse pointer on the panel at button location. Also if I click on panel at exact same button location, button clicks and event fires. How can I make this panel to be not “event transparent” for the objects behind that panel?
Just put a script on the mousePressed of the panel that does nothing like this:
passIt will take the mouse event and will not pass it through to the button.