New UI buttons doesn't work

Hi!

I recently made a simple GUI with the new UI system in 4.6 but I have one MAJOR problem. The buttons doesn’t work. I can’t hover over them, click on them or anything like that! If you know what could cause this, please tell me!

Thanks in advance!

Screenshots if needed

Canvas

[31641-screenshot+2014-08-28+00.04.35.png|31641]

Button

[31642-screenshot+2014-08-28+00.04.45.png|31642]

The correct answer should be: make sure you have an EventSystem added to the hierarchy!

For a button to work it needs to be a child of a Canvas that has a Graphic Raycaster Component attached to it.
If there are multiple canvases and more than one have a Raycaster it’s possible for one to block the other in terms of input but not visually, so make sure it’s not under something.

I had a similar issue, where my solution was to change the “Order in layer” for one of my two Canvas from 0 to 1. Before both Canvas order in layer was 0.