Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Changing Audio between scenes (Javascript)

$
0
0
I am trying to make a menu for my game, I have an audio source on the first scene, which starts the background music and then I have DontDestroyOnLoad so that the music continues when I change between scenes. I want to have an options menu where I can use a slider that will change the volume of the music that is playing. I can't get the slider to do it as the audio source is not created in the same scene as the slider. Any ideas?

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>