- Home /
Button isn't working
when im exporting my game on android; some buttons are not working, its kind of hard to explain, but when im exporting the game without the game scene levels (menu only) the buttons works properly; i made my game's home menu a touch to play , and two small option buttons on side; when I'm adding the game levels scenes ,they are not pressable. for starting the game; I'm using the if (Input.touchCount == 1) method.
People are more likely to help you if you can provide a bit more detail about your setup (your code for example)
Sorry,my code is very complicated ,long and special therefore i really cant post/share it, if the problem is not clear im sorry, but you dont have to answer the question, thanx
well don't get me wrong, I try to help... However noone really knows what can cause the error with this information.
but O$$anonymous$$, how do you check touches exactly because Input.touchCount
returns how many touches are occouring, nothing more.
With so little information, the best we could do is a wild guess. And UA tries to be about answering specific questions. A time honored technique to debug these kinds of problems is to attempt to produce a $$anonymous$$imal case. This can be done by either comment out any not-necessary (in terms of the bug) code in the current project, or by starting a new scene and it building up towards the offending code. Often the problem will become apparent. And if not, you will have a simple case to post to Unity Answers.
Ok, mainly im trying to ask for several good ways to get a touch input for the certain thing i ment earlear(the menu) ,do you have a way you think that will solve the problem with the buttons?
Answer by LinuxHacker · Jun 18, 2013 at 04:44 AM
I solved the problem by creating a button instead of the menu, thenx anyway!