Why are buttons unresponsive

So I’m not quite new to Unity been using it 4months now, but today i started trying GUI stuff. The question is, why are the buttons unresponsive? I select the highlighted color to become red on mouse-over, and it doesn’t do it.

Whenever I click the button i want it to call a savegame function(it works i’ve tested it, just changed when I’m calling it) it doesn’t save and so on.

I even tried creating a simple mainMenu scene in which a button would take you to another scene. it still isn’t responsive.
Please try to help, thank you :).

1 Like

Buttons work fine. You should probably start by doing some tutorials. Learn game development w/ Unity | Courses & tutorials in game design, VR, AR, & Real-time 3D | Unity Learn

–Eric

I follow tutorials i do the exacts same thing as they do but it doesn’t work, my guess is i don’t have something checked or i didn’t add a component, i just dont know, that’s why I’m asking .

Do you have a event system in your scene ?

3 Likes

GameObject/UI/Button, change highlighted color, Play → works.

–Eric

I changed the highlighted color, still not working, i have a simple scene with an event system a camera a canvas and a button as a child of the canvas.i didnt touch anything used the default button unity is giving me, changed the highlihted color from the inspector, on mouseover it doesnt change anything.

Did you hit play? There is not much else that could go wrong. Here is the full list of things you need.

  • Be in play mode
  • Have a EventSystem in the scene with appropriate input modules
  • Have a canvas with an appropriate raycaster
  • Have an object as a child of the canvas with the button component attached

Start with a blank scene. Create a button from the menu. Everything else should be taken care of for you automatically.

I know this is just crazy. I did exactly as u said a blank scene added a button, it automatically created a canvas and when i click on the button nothing happens, i told it to have a black pressed color, I sound super stupid for this I know but I have no idea why isn’t it working.

Are you in play mode?

–Eric

1 Like

are there any errors in the console?

1 Like

I actually seen games made with Unity have this same issue… They are on google play store. I do no use Unity UI, I use NGUI, and have no issues, I wish you the best of luck… I also had a few friends have have some of the same problems… Since some use the new UI, not saying its bad, but saying there must be a bug out there if some are having this issue??

Just to be clear, you have to be in play mode AND you have to click it in the Game View window, NOT the Scene View window.

1 Like

I realize this question is super old but I figured out the problem. I was having the same issue. SO the answer is in your hierarchy. You need to make sure your panel is on top of the buttons on the hierarchy. I’ve been having the same issue for a long time and it had me like WTH!?!?!?! Sometimes UNITY moves the panel to the bottom, or sometimes its a user error.

Anyway that’s it, move the buttons below the panel.