- Home /
Play Audio Through Scenes
Ok I have two audio clips..1 of them is MenuMusic, the other is MainGameMusic...I have three scenes, Title scene, Store scene and MainGame scene.. I want the MenuMusic to play when the game is initally loaded and displays the Title Scene, if the player clicks on the Store button, it loads the Store scene and i want the music from Title scene to continue playing, however if they click MainGame button on the Title scene, it loads the MainGame scene, in this case i want the MenuMusic to stop playing and the MainGameMusic to begin...When the player dies, they go to the Title Scene so MainGameMusic needs to stop and MenuMusic begins again
Currently I have the MenuMusic and the MainGameMusic attached to a gameObject in their own scenes and to just play on awake and loop.. Any help would be great, thanks
Your answer
![](https://koobas.hobune.stream/wayback/20220613200232im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Audio listener to mono then to left or right speaker? 2 Answers
Load Scene by audio clip 2 Answers
IS it possible to load the whole game (and all scenes) at startup to avoid scene change delay? 1 Answer
Strange Bug or Code Error with footsteps? -1 Answers
How can i set audio mixer groups volume to be used with ui slider when 0 is lower and 80 louder ? 1 Answer