#Button won't click reliably

1 messages · Page 1 of 1 (latest)

weary wyvern
#

I have no idea why I can't get a button to click relibably. I am just testing on my PC with my editor at this stage. Shown in the attached screenshot, I have a button (currently red but color is normally alpha 0 which maybe is causing issues??) with some text in it that I want clickable. It is currently mapped to InterferenceScript.StageBypassClick(). This does a simple Debug.Log() output. However 50% of the time I click on the button it doesn't output. I tried adding a button component to the child Text of the button with the same onclick and that did not change anything. Thanks for any help.

#

Just tested, its not the alpha setting. I left it on red and tested again...same issue. It seems like the bottom part of the button doesn't work at all. Maybe more is going on but lets assume that is the entire problem at this point. Why would the bottom half of my button not work?

vale prawn
#

It's probably getting covered up by another element. Something is in front of it and consuming the click before it reaches the button.

#

you would want to disable "raycast target" on anything that's not supposed to be clickable