- Home /
Duplicate Question : Asking for Script
Play music trough scenes
Hi Unity dudes,
I'm making an game and I need to continue music from the first scene to the second. I tried a lot of self-make scripts and also a lot of scripts that I found on Unity Answers. Could someone write a script in JavaScript or C# to help me out with this problem?
Thanks,
-Bramhaag
np, we all start somewhere, still the code is pretty much a copy paste to make it work, but it would help to try to understand it, and read a little about program$$anonymous$$g
I know a little of Java, because i made some plugins for java games, but i only learned some API stuff with it
Use DontDestroyOnLoad on the object that plays your music, and all that you will need to do next, is to destroy the object when needed (i.e. when you move to a scene that should NOT play this music).