- Home /
Is there a way to emulate a touch in the Game view of the editor
I am developing a game which uses touch , yet when I go to the editor the mouse click doesnt emulate a touch at all.
This means I have to deploy to the phone which takes time, and spoils some of the benefits of using Unity. What is the best way of enabling this feature so clicking is equal to a touch.
I have read you can do Input.GetMouseButtonDown(0) and buttonUp - but that doesnt work great when you are looking for a "TOUCH" event - any help?
What do you mean "emulate a touch" many games use the Get$$anonymous$$ouseButtonDown(0) for touch events in iOS and Android, how does that not give you what you need?
Answer by henry96 · Mar 11, 2012 at 04:18 AM
You don't have to build it to your device to test it. Simply connect Your device to your pc. Set up some setting to test on your device. Download Android SDK on your pc and download Unity remote on your device. Open unity remote and Hit play in the Unity editor then you will see the game running for testing on your device.
You mean using the Unity Remote app from the device... doing wat you describe does not actually work at all unless you have the Unity Remote app running on your device...
Doesn't work, because a single click is processed like having a mouse attatched to a mobile. :/
Your answer
Follow this Question
Related Questions
Android Game Problem 2 Answers
Configuring android virtual device for Unity 1 Answer
testing touch function on pc instead of on phone 5 Answers
Standard Assets disappears in somes Android Phones 0 Answers
Mobile Graphics Settings in Menu 1 Answer