Quantcast
Channel: Questions in topic: "loadlevelasync"
Viewing all articles
Browse latest Browse all 194

Load and run scene in background

$
0
0
Hey guys, I want to load a new Scene(The main game) from the start scene(menu). I use the following code: AsyncOperation loadscene; loadscene = Application.LoadLevelAsync("Hauptmenü"); loadscene.allowSceneActivation = false; and then after I load some things I activate it from another script: loadscene.allowSceneActivation = true; My Problem is that the Scene(main game) have to run a few seconds to load stats and other things... Is there a way to let the Scene(maingame) run, before I let the scene show? Thanks for help!

Viewing all articles
Browse latest Browse all 194

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>