- Home /
Is SetActive doesn't working or the button dont work? [Solved]
Hi, Im making a android game and I have a problem with the game over menu, specifically with the button of return to menu, that when I press it, it doesnt do enything, I do not know if it's a button or script problem :v
I have the script in the Game Manager object, you can see it in the pictures
alt text
Does the scene contain an Event System? If not, you can add one with right clicking on the Hierarchy > UI > Event System. It's basically the callback manager for the 4.6 UI. Without one, no UI events will trigger.
Answer by Leucaruth · Feb 22, 2018 at 12:51 AM
Most probably is because you really aren't clicking the button, but instead another canvas element that is in front of it.
Another possibility is that you dont have the GameManager script in your scene and you are using directly the script from the project folder, to make it work you need to use from a gameobject that has the script attached to it in the scene.
Your answer
![](https://koobas.hobune.stream/wayback/20220612152940im_/https://answers.unity.com/themes/thub/images/avi.jpg)