if(SystemInfo.deviceType == DeviceType.Handheld) { Debug.Log("this is touch device"); } else { Debug.Log("this is not touch device"); }