Ok, so i have been working on a game that involves different levels. Each level has its own scene, if you die the scene restarts. I need music to playing throughout the entire game, but whenever the scene changes the music will stop (since the object producing the music is in a different scene) or if I restart the scene the music restarts. Is there a way to keep the music playing all the way through (with looping)? I have a HUD scene that is active throughout the entire game if that helps.
It is ok, I figured it out. I put the music on an object in the HUD scene and it kept playing regardless if the main scene changes, as long as the HUD is there.