I just start to use Unity3d for AR, and i would like to use sound file(mp3, wav .etc) for my 'teapot' as well.
1. I set AudioListener to ImageTargetChips.
2. I added a sudio file(Audio Source) to ImageTargetChips.
3. I un-checked 'play on awake' and wrote 'audio.Play()' to 'TrackableEventHandler/OnTackingFound()' , so that it will be played when the target detected.
4. and I wrote 'audio.Pause()' to 'TrackableEventHandler/OnTackingLost()'
so It worked well 'til the sound Pause.
I mean when my app find target, the sound file played. and if it lost target the sound stopped.
HOWEVER, when my app find the target AGANE, the audio file play AGAIN from the top. :eek:
I wish the audio file RESUME when the target found again...
How could i do that?? is there any solution for that??