- Home /
Input.touchCount works in one script but not the other
Hello everyone, I'm coding an android-app which is based on the Google ARCore test scene for CloudAnchors. I made another script which should also work with touch inputs. Somehow, the code in the CloudAnchorController script works, but in my code, Input.touchCount ist ALWAYS 0. Can anyone help?
void Update ()
{
Debug.Log(Input.touchCount);
}
Check to see if the GameObject or the script has become accidentally disabled in the scene, if not then could you post the entire script here?
Answer by hameed-ullah-jan · Nov 05, 2018 at 04:42 PM
if you can provide more details that would be better at this stage I can only give you suggestion that, make sure you attached both the scripts to some gameobject in the hierarchy.
Your answer
Follow this Question
Related Questions
Update executes on touch 1 Answer
Update AR Content with Vuforia-Android 0 Answers
android game check for updates 0 Answers
Android update math at higher hz? 2 Answers
Button Touch for Android 2 Answers