- Home /
Loadlevelasync - Application Hangs
Loadlevelasync while starting the scene hangs for a bit.
It's the activation and start scripts of all the loaded objects I'd assume doing this, so I was curious if theres any built in unity way of making it so not all the objects are loaded on a single frame causing the game to hang.
Answer by Tehnique · Jul 10, 2014 at 11:27 AM
LoadLevelAsync should do its job in the background, so it shouldn't hang, unless you wait for it's result in the main thread. If you run it as a corutine, it will not block your current thread.
Also, remember that when you build your game, the load times will be much shorter, due to optimization at build. The editor takes longer to run such operations. Maybe You should build the game and test the load then.
Answer by alok.kr.029.hotmail · Jul 10, 2014 at 11:57 AM
generate seperate thread for LoadLevelAsync it will solve your problem