UI Bug - click area of a button spreads over other buttons

Hi there!
Here is what is bugging me.
I have this GameObject called GameOverHandler and it’s SetActive(false) until the Player crashes into something.

Then it becomes active and it’s time to choose your next action.
For some weird reason all clicks land on the button that is on the right side, no matter where I click.
I also built the game and checked it on the phone - same bug.

Here is a little video I made of the problem:
https://drive.google.com/file/d/1893BQln9s-WVJapndO4ZdNWMA54dYCqQ/view?usp=sharing

Does that look familiar to anyone?

That looks supiciously like the top button has surface area that extends overtop of the other two buttons… Check the outline box of each button in the inspector.

1 Like

Yay, got it.
It was not the button itself. It was it’s child (a text) that was overlapping.

So if any of you have a problem like this, check not only the probable culprit, but it’s children, too.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms