Turning on and off Audio (song)
Ideally I'd like the song in the lens to play on opening, then tap to toggle the audio off & on.
I have the file currently set up like this [see below] The audio is off when I open the lens then when I tap it turns it on but I cannot turn it back off.
The audio layer is unchecked & in the inspector panel 'autoplay loop' is checked -- which I feel like is incorrect.
Can someone help me out? :)
I looked at this and looks like you should be using the "Play Sound" option instead of "Set Enabled" but it doesn't have a toggle option so I modified the script to add one. If you haven't modified the Behavior script you can just replace it with this one:
Martin Sanchez the script is great! This is exactly what I needed.
Thank you so much!!