- Home /
Play animation by touching 3D model on android device
Hi guys, im a total newbie in unity and starting to get familiarized by the codes.
So what I am trying to do is when you touch the 3d model on android screen it will then start playing a specific animation that I've set.
I have used touchCount but the thing is it animates the model wherever I touch on the screen since it activates on every touch count not on the model.
Btw I'm working on AR usin vuforia.
Thanks in advance to your suggestions.
Answer by hexagonius · Oct 27, 2018 at 02:22 PM
then you next step would be to familiarize yourself with the concept of raycasting:
https://unity3d.com/de/learn/tutorials/topics/physics/raycasting
I've solved it by accident while searching around the net and found raycast. And yes it worked. Thanks for your answer too.
Your answer
![](https://koobas.hobune.stream/wayback/20220612181044im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Object colour at a location 2 Answers
Skin issues with Spine 1 Answer
How do I hide methods from the animation event inspector window? 2 Answers
How to open the door when I need 1 Answer
Multiple Cars not working 1 Answer