- Home /
The question is answered, right answer was accepted
Touch Sensitive Screen input problem
Hi, so I'm working on a small puzzle game where you need to turn pipes at the right angle to succeed the level and it will be played by kids on a Touch Sensitive Screen that work with a barebone pc. As I said, It will be played by kids so it need to be capable of handling many inputs and here is my problem, for Unity the touches on the screen are like mouse clicks and Unity can manage only one onMouseDown at a time. But it's work with my button because they use Click listener, so, is there a way I can add the click listener to my pipe gameObject for it to turn when clicking on it even with like 5 or 6 at the same time ?
Answer by swanne · May 09 at 03:20 PM
Hey,
Instead of handling touches like mouse clicks, are you able to utilise Unity's touch functions?
https://docs.unity3d.com/Manual/MobileInput.html
If you can, there is a video that shows how to handle multiple touches at the same time - https://www.youtube.com/watch?v=98dQBWUyy9M
Yeah I've already tried this but I did some test in the log to see how Unity was interpreting the "touch" and it was showing mouse inputs. So I think I'll just hide buttons on the pipes because the Click listener works great with the touchscreen lol
Answer by DjazzyBoi · May 10 at 08:01 AM
OKAY Nevermind I did some other test and guess what the unity interpret the touch like a click AND Touch. Guess I'm an idiot lol but thanks for answering me this fast !!
Follow this Question
Related Questions
How to make a Key Listener in unity 1 Answer
Change forward control on mouse rotation 0 Answers
Help In Making a SphereCast for 3D Tire! Working RayCast Script included! 0 Answers
Rotate object after swipe according to swipe direction 0 Answers
blendtree animator float value does not return to zero after i have stopped giving input 1 Answer