- Home /
Question by
ensisoltani · Sep 12, 2019 at 09:54 AM ·
unity 5touchaugmented realityunity 3.4
it does not wait for user to touch,unity does not wait for me to touch a game object
![hi, i wanna to do this in my ar app: user touch a player key and play a random sound, if the index of sound was for example "0" then we have another if loop; if the user touch a gemeobject named "father" , debug.log("ture") and else, debug.log("false"). now my problem is that : when user touch the player key then unity does not wait for touch a gameobject and it run the else loop imediately.][1]
untitled.png
(169.8 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612212043im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Drag and DoubleTap from mouse to touch??? 0 Answers
How to use TouchPhase.Ended? 1 Answer
Once Trackable Library is found, How do I set a permanent Timer on the Augumented Objects ? 0 Answers
How to Raycast on Touch? 3 Answers
Color detection in Camera 0 Answers