- Home /
Does the Unity editor support touch input?
I've got a Windows 10 computer with a touch screen and I was hoping Unity would let me use multi-touch input in the Editor's Play Mode.
However, when I run the below script on a game object via the editor, both my touches and clicks are logged as clicks. When I build and run standalone, I get both touches and clicks, as appropriate.
Is there anyway to make this work without building standalone?
 using UnityEngine;
 using System.Collections;
 public class TouchTester : MonoBehaviour {
     // Use this for initialization
     void Start () {
         Debug.Log ("Is touch supported: " + Input.multiTouchEnabled);
         Input.simulateMouseWithTouches = false;
     }
 
     // Update is called once per frame
     void Update () {
         var numTouches = Input.touches.Length;
         if (numTouches > 0) {
             Debug.Log ("There are this many touches: " + numTouches);
         }
         if (Input.GetMouseButtonDown (0)) {
             Debug.Log ("Click!");
         }
     }
 }
Hi @guylima, did you found a solution? I`m also looking for ways to interact with my app directly in the Unity Editor in a multi touch display.
I was unable to ever make this work. It seems that the editor only supports mouse input. However, I've not seen any documentation that states that.
I'm also looking for a solution on this. It would make touch testing way easier.
Your answer
 
 
             Follow this Question
Related Questions
Using touchscreen in editor for development 0 Answers
How to check if a key is down in editor script 2 Answers
Check if mouse is down while in Edit Mode 1 Answer
Help In Making a SphereCast for 3D Tire! Working RayCast Script included! 0 Answers
Korg MIDI Controller Input working in editor, not in build 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                