set input .touch count equals to keyboard code example Example: recognizing touch input unity if (Input.touchCount > 0) { }