Buttons don't work after Unity 2017 Update for Screen Space Canvases

I updated my project from Unity 5 to Unity 2017. My project has many canvases and the render mode is Screen Space Camera for all of them. After the update, buttons on some of the canvases don’t work anymore. It used to work flawlessly before.

Changing the camera mode to Overlay makes them work again. What I want to know is if this a bug in Unity or something is wrong on my end for Screen Space Canvas buttons to not work?

Somehow using negative values for canvas sort order fixes this issue. Weird.

I had the same problem and switch my canvas render mode to Overlay fixed it. I thought it had something to do with the animations on my UI but alas it did not. I never figured out exactly what caused the issue because some of my buttons worked and other did not.

For Screen Space - Camera canvases please make sure the button is ON FRONT OF THE CAMERA.

Clicks worked for buttons behind the actual camera’s GameObject in Unity 5.6.x.

They changed the behaviour in Unity 2017, so buttons don’t work. Even z=0 may not work. Set z=+1 for UI.Button.

For me I had to ensure that UI buttons did not have a Z-scale of 0 to get them to work in 2017.1

I have just the same problem created in 5 2017—> NO way
not any Button working —> this is no good —> not a professional use possible
seem there are just hackers working with unity