- Home /
Disable double tap on Unity UI Event System in Android
Hi, I am using the event system built into unity for touch on buttons, but it seems that in the editor a single mouse click works fine, but on Android I need to double tap for it to register the button press.
Is there any way to disable this so its a single tap?
Ok, I am really struggling with this... I have just made a brand new project with a few buttons that change text.
In the editor, one click changes the text, but when I publish to android, again it needs several touches sometimes to make the buttons work. This cant be normal behavior so again I believe I am doing something wrong.
Would someone please open this test project and see if I have setup the buttons incorrectly? I need this to work! http://www.dropbox.com/s/ze2rm0nugv9u7yx/Test.zip
Basically, here is what I am doing:
Add a canvas
Check the allow mobile input and standalone options on event manager
Create the UI buttons
Assign a script to the buttons with a public void that does something
Add an onclick() function to the button, select itself as the target method above as the function
Run
Like I say, this works fine in the editor, but on android has some seriously funky behavior.
The weird thing is that I can see the buttons highlighting when you touch them, they just wont run the function until touched several times...
Please can someone help?
Answer by NerdRageStudios · Jul 20, 2015 at 06:13 PM
Fixed it, turns out the Standalone Input module seriously messes with Android touch input if enabled, I disabled it and it works fine.
Your answer
Follow this Question
Related Questions
I can't use more that two buttons at the time. How do I change that? 0 Answers
UI CustomShader disappears when Android losing focus 0 Answers
Draw a line from finger game for mobile 0 Answers
UI and resolution problems (fine in editor, problem in Android build) 1 Answer
How would I detect a right click with an event trigger? 3 Answers