Hi Unity Community, I stumbled upon a pretty awesome Windows 8 touch ultrabook from Asus, the Vivobook S400A-DH51T, a perfect bang for the money, and since it’s 10-point capacitive multitouch capable like so many of my main target platforms (Android, iOS), I was thinking before I take the plunge: Can I test the android game I’m developing directly on the editor (Play Mode) using the laptop touchscreen AND expect everything to work as on the end smartphone or tablet???
If so, that would accelerate my developing cycle so much (Repetitive building and pushing to the smartphone takes too much time) especially when I’m developing jesture control mecanisms, and I would recommend that to any mobile developer from now on.
And if not, can we count on Unity to incorporate that important feature in the future? And if not, is there some other way to plug Windows Touch Input to Unity Android touch events API or by emulation etc, and if not:) can the windows build support touch and what API to use?
Thanks so much.
In theory yes, your game should receive input from the OS, so if the OS gets a finger touch it should send that on to the game editor (just like a mouse click).
You may want to look at using a plugin like Finger Gestures to manage your inputs (Finger Gestures detects what platform your game is running on and uses a uniform input method for that platform, so you can go from PC editor to android build without any changes to your code!). Or you can write your own of course
[EDIT] Just remember older android devices do not support more than two finger inputs per touch.
Thanks Alastair, almost forgot about Finger Gestures, checking it out immediately.
A plugin would abstract out any differences between platforms if it exposes unique API to the user.
I was mostly concerned with any changes I would have to make to the code to run it on the editor, so that’s cool. Would you advise me to strictly use the API of this plugin or can I use Standard Unity Input (Input.Touch) and still get similar behaviour between Editor and Devices?
Thanksss again mate.
Hey xCybord, I am actually in the midst of buying a new laptop for the purposes of development in Unity, when the same question came upon me. So were you able to get your Vivobook’s touchscreen to get input in Unity’s Editor (Play Mode). I for one will definitely be considering a touch screen laptop if this seems to be the case.
Thanks!
My touchscreen laptop doesn’t seem to work with Unity.