I’d like to play a little waiting music during the loading of scenes (levels). But when Application.LoadLevel is called, the execution of all other things comes to a standstill. Music stops playing.
Is there a way around this?
I’d like to play a little waiting music during the loading of scenes (levels). But when Application.LoadLevel is called, the execution of all other things comes to a standstill. Music stops playing.
Is there a way around this?
Have you already tried
or
?
loadlevel fully finishes the current level and is replacing it with a new one, so its to be expected that it stops everything. I would be worried if it didn’t, especially on the iphone where graphics RAM and RAM are seriously restricted
also the compressed music playback takes a serious amount of processing. without shutting it down, the performance will drop considerably on loading.
Really? I can run iTunes while editing my game and I don’t see a performance hit at all when loading level with itunes playing vs not (even while playing DRM’d music).
We are talking here on the iPhone board so the topic is clearly “on iphone” where you can not edit things
Thought some kind of “onLoadProgress” callback + loadlevelprogress gathering possiblity would be great
ok thanks. Attached this script to the object with the music and it works.
function Awake () {
DontDestroyOnLoad (this);
Application.LoadLevel (1);
}
Don’t you just love Unity!