- Home /
Problem with UI in iOS / Android
Hi guys,
Am facing a very strange problem with touching on UI.
From image, i have joystick buttons on left and right (Both are GUI Textures), and middle one is the pause button (GUI button in OnGUI). If i touch both left and right joystick buttons at the same time , the pause button action is occurring and game is going to pause mode ?
can anyone explain what is the problem ? And how can i resolve it ?
Thanks.
What device are you using? $$anonymous$$aybe it doesn't support multi-touch. Also, share your code that handles the touches.
Probably better to be using Input.GetTouch()
and Rect.Contains()
to decide if the touch is on your buttons.
Hi @tbkn am using ios and android, both having the same issues. No, it's supporting multi touch, and i didn't disable the multi touch.
Answer by skoandi · May 23, 2013 at 04:40 PM
This is a bug, I've seen some people on the forums that also have this problem :) Use the bug reporter so Unity can fix it :) I hope it's getting fixed in 4.2
Can you describe when this bug occurs? I created a game where two players touch the screen at the same time and it works fine.
So, is it a bug or isn't it a bug? If it's been reported as a bug, then share the bug number.
Hi @tbkn, Its happening When touching the both of joysticks (Down button) at same time.
Why did someone down vote my answer? Don't you guys know what a bug is?
Your answer

Follow this Question
Related Questions
Whats best to use - OnGUI or inserting Texture objects 1 Answer
How to make OnGUI Texture able to be clicked 1 Answer
Long press on EXISTED GUITexture 1 Answer
GUI on iPhone...GUI.DrawTexture or guiTexture.pixelInset ? 1 Answer
What's the easiest way to make a texture button with a hover state? 3 Answers