Basically i have 3 different trackables(pages) and i have set up a custom trackable event handeler to play a sound on track but if the track is lost it continues to play until it has finished the audio or unless another page is activated. The next part i need to figure out is if another trackable gets activated and i go back to the first page that the audio will trigger again.
so at the moment im using 3D sound clips and distancing my trackables in unity world space, from what i can tell if a track is lost the ARCamera will remain in its last tracked position(this is what has made this method work). but if i can find a way of identifying the trackable i can activate audio depending on the pages and use 2D clips.
Is anyone able to help me with this?
From what i can tell the trackables all have names but they are strings and im not sure if there is a way to do an if statement on a string?
also for simplicity sake i would prefere to stay in C# if possible?