This may be a silly question, but so far I haven’t found any answer after a couple hours of googling.
So, how do I make new uGUI system handle multi touch inputs?
For instance, I have right and left move button and jump button. I want them to be able to be pressed simultaneously. I am using PointerDown and PointerUp events on the buttons, but it seems that Unity only handles one touch at the time, meaning the other touch will not work until I release the first finger
Assuming your using the touchInputModule then it should support multitouch. if not submit a bug please.
Thanks for reply. yes, I am using default touchInputModule in an EventSystem object. I have four buttons under canvas. On each one I assign method call for PointerDown and PointerUp events. However, it’s possible to use only one button at a time, like if I touch phone screen with a finger, then move it out of the button area, put a second finger on a screen in a random area, and remove the first finger and then remove the second finger, only then the PointerUp event for the first button will occur. Hope I explained it correclty. Want to check that I am doing the right steps.
Hmm yea i get what your saying. and that doesnt sound right to me. Let me talk to the guys monday (they have all gone home for the day) and see if this is by design for now or something.
great, thanks
I am definitely experiencing this as well. I was using a combination of drag mechanics in the scene with ui buttons and I had to code around it using traditional colliders and sprites. This also helped me solve the square button collider problem at the same time. (See here)
Could you please raise a bug? After talking with the guys they’ve been using multi touch without issue so we’d like to see what you might be doing different.
have not replied for a while. As a workaround to this issue I have used legacy GUI and iterated through all the touches to check and compare their positions and the positions of the buttons. But I still have submitted a bug, so hopefully to use new uGUI to handle multitouch. Thanks.
Guys, seems the problems only appears when using Unity Remote. On a normal Android build multi touch works as expected!
Thanks so much NightWish. Been wondering why the hell multitouch doesn’t work, thought it was daft that 4.6 couldn’t handle it. Been looking for the answer for the last 3 hours ha.
Ya I’ve been trying to figure out how to PointerOnDown to fire on two separate objects simultaneously and can’t figure it out. Although I haven’t built it to device, just through iOS simulator. But this should definitely be working on iOS simulator…
Works for me…
So multitouch works when built to the device. But I can’t get it to work in the editor through the unity simulator. Which is very annoying. Anyone know how to make it work with simulator?
There’s a free asset called TouchScript with a feature to simulate a 2nd finger via the Alt key.
There’s also a paid asset called EasyTouch that has this feature using the Ctrl key.
EasyTouch has a webplayer demo you can try out as well.
I found EasyTouch a little simpler to get up and running but both assets are very powerful.
I want to be able to actually use two fingers on the iPad simulator.