How to play audio by touching AR 3D Object?
Hi,
I am integrating ARToolKit with Unity. I am able to identify the marker and place a 3D object on top of it.
I want to play an audio file when I touch that 3D object on my Mobile device. How do I proceed for it?
Adding an audio component simply plays the audio as soon as the marker is identified. I want to implement a touch feature to play the audio.
I am a beginner in Unity. Apologies if the question is something silly and something that I have totally missed out on.
Answer by aandnot · Oct 19, 2017 at 06:46 PM
You just need to know how to setup a touch event.
https://unity3d.com/learn/tutorials/topics/mobile-touch/multi-touch-input?playlist=17138
This should get you started.
Your answer
Follow this Question
Related Questions
Can we load a 3D model from a directory in phone to Unity application at run time? 0 Answers
Change 3d model by touching it with ARCore in Unity 0 Answers
Android audio latency 0 Answers
Andriod background audio (like spotify) pauses when starting unity app 0 Answers
Problem with ARtoolKit on Android 1 Answer