ImageButton does not detect click?

The button is only detecting clicks on the edges of the button?

I have tried to disable the “Active” property on the Icon Image which is above the clickable button, but it still did not detect any clicks.

The ImageButton:
image

"UpgradeItem" is the clickable button:
image

I use the MouseButton1Down event for clicking.

Have you made sure the Zindex of “UpgradeItem” is higher than UpgradeImage? And also, you should be using UpgradeImage as I am guessing the background is the purple part and the upgrade image is the middle where it shows wood and the coin.

1 Like

UpgradeItem is one index lower than UpgradeImage. Alright, I’ll try to use UpgradeImage as the click.

1 Like