how to test Buttons

Hello,i have a button and it stopped working this version.

the script for it is fairly simple:

go.endbutton.GetComponent ().onClick.AddListener (delegate { endturn (); });

however endturn is no longer called.

I changed a bit in the scene and i think it messed up some buttons. With a maximized screen no buttons work, with a minimized atleast some work.

i have a similar issue with an other button too.

How can i check best if the button receive the click and what do i do if it does not.

Whatever your OnClick function on the button is, add a "Debug.Log(“Clicked”) to it.
This way the console will show you if the button received a click.

Also if the buttons are unclickable there might be something over it e.g. a panel that is blocking the click.