- Home /
UI Buttons not working?!?!
Hi so im currently building a game.. and i have buttons that do certain things for the ui in various parts of the game.. And they all work completely fine when i run them in unity.. However.. when i export the game to andriod or mac (these are the only two i've tried), some buttons won't work.. I can click them, and they will darken, but they will not do what they are supposed to. I looked up, and someone else had this problem, and it was because two canvases where in the scene. I do have one scene like that that doesn't work.. but i have another that only has one camera, and doesn't work.. What should i do??? Thanks!! -Ross
Answer by LRG · Dec 23, 2015 at 10:45 AM
Make sure that you have an active Event System in your scene. Otherwise buttons won't work at all (though they most likely wouldn't work anywhere). If there is, I would try to ensure that it is properly configured with a Touch Input Module.
Thanks!! that helped.. it also turned out i had some audio clips that weren't playing... and so it was not working.. but thanks!!
first render camera to your canvas render so you can get exact button click. i hope your problem is of screen touch location
Your answer
Follow this Question
Related Questions
Detect if player wants to pause or to jump 3 Answers
Menu not getting Keyboard Input 0 Answers
How do I highlight multiple buttons at once? 1 Answer
UI bugging after build? 0 Answers