I have setup a UI in my unity 2D game. All of the buttons work in the editor, but when I build the game there are 4 buttons that don’t work. Does anyone know how to fix that?
3 Answers
3First, is the problem the button itself does not work or the method the button should be calling?
It looks like you have the UI all hooked up properly, so if the button is clickable but it’s not executing the code as you expected, then that indicates there is a problem with the code. In that case, we would need to see the code to try and spot what the problem is.
Must be some other Image(button) overlapping those buttons… like panel or alpha of some other button . Recheck…
Hello @eiscomania
do you have a GameManager object in the scene that keeps all the codes for the gameplay?
I can help better if you can share the codes with me
The problem is that the button isn't calling the function. Cuz I also don't het a debug.log.
– eiscomania