By hoony
on Wed, 06/20/2012 - 17:07
Hello, Genius!!
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.
[B]HOWEVER, when my app find the target AGANE, the audio file play AGAIN from the top. :eek: [/B]
[B][U]I wish the audio file RESUME when the target found again...[/U][/B]
How could i do that?? is there any solution for that??
Re: How to resume the audio when the target re-found?
Re: How to resume the audio when the target re-found?
Re: How to resume the audio when the target re-found?
How to resume the audio when the target re-found?
Thank you for this
How to resume the audio when the target re-found?
How i specifies the audio that i want?