I am trying to implement buttons using OnMouseUpAsButton on a Sprite with box collider. The problem is when I have 2 sprite button overlapping each other, when clicking on the overlapping area, both buttons are activated. How could I prevent the button on the lower layer from activating and the the top layer eat the event?
Thanks.