Question by
thebko · Jun 24, 2018 at 05:14 PM ·
androiddetectiontouchscreen
Touch on screen never detected
Hi,
i'm trying to simply do a script that increase a variable each time i touch my android screen.
I tried many official unity c# script but none worked. I have never a touch detection.
very simple example :
void Update () {
if (Input.touchCount > 0)
{
Debug.Log("touch screen");
}
}
I specify that i attach the script to an image. I run the scene from unity directly on my android phone which is connected in USB.
Thanks a lot
Comment
Your answer