- Home /
Continue audio during a scene change??
I tried everything I found and nothing has worked so far. I just have a simple audio clip playing and need it to keep paying during the scene change. I won't need it again after its done. I don't need anything else fancy like having another clip start up again, just a simple script to keep this audio with me during the change.
And maybe have everything turn black for like 2 seconds during the change to?? I don't need to bring anything else over expect the audio. Any ideas??
I did try that but what happened is that I have an audio file that is triggered and that is the file I want to cont. playing. However, when I added the don't destroy on load script my audio file starts playing right away before its even triggered, and play on awake is NOT checked. The don't destroy script is interfering with my audio script.
I would fill up pages with all the diffrent codes I tried so far, I ended up doing somthing else with the audio. Just added a black out right before the scene change, (makes it look like the lights went out) then when they turn on again, the scene has changed already. Works great.
Answer by jtok4j · Nov 17, 2014 at 09:20 AM
Hey,
I was also looking for an answer to this question, and came up with these previous questions on the same topic:
http://answers.unity3d.com/questions/59135/playing-music-while-scenes-change.html
http://answers.unity3d.com/questions/471169/urgent-issue-with-music-and-dont-destroy-on-load.html
http://answers.unity3d.com/questions/11314/audio-or-music-to-continue-playing-between-scene-c.html
Seems to be that this isn't possible without Pro, but several possibilities have been offered in the above links. :)
Hope this helps.
Answer by playmonkey1 · Nov 17, 2014 at 10:14 AM
If the previous links did not help hopefully this should. Essentially you need to persist a gameObject when loading your new scene. This should help Persist gameObject
Your answer
Follow this Question
Related Questions
Playing music through complicated scene 1 Answer
Audio 5.1 no rear speakers 0 Answers
Build Scene Assetbundle cannot include Tag 0 Answers
Audio Trigger 3 Answers
Multiple scenes 2 Answers