- Home /
Load Level in background and load it when key is pressed
Hi, I was looking up at the scripting reference but I not sure how to do this and if it is possible...
I want to enter a level (let's say an intro) and start loading a level in the background (a menu for example). I noticed it is possible to do Applicacion.LoadLevelAsync
However, I want the menu to start loading its assets when the intro starts running but I want to go to the menu not when everything is loaded but when I press a certain button.
Is this possible? How can I do it with c# code? Thank you
Answer by qJake · Apr 02, 2010 at 05:40 PM
Have you taken a look at this page?
http://unity3d.com/support/documentation/ScriptReference/Application.LoadLevelAsync.html
From what I can tell, when you asynchronously load a level, it doesn't just come up right away... you can tell Unity when to switch to the new level (that was just loaded).
Note that this function requires Unity Pro.
Thanks. I did check that but it wasn't very helpful. However, I came across this tutorial: http://infiniteunity3d.com/tutorial-coroutines-pt-1-waiting-for-input/
It is good but I cannot figure out how to wait for a key to be pressed while the level is being loaded in the background
Your answer
Follow this Question
Related Questions
Click Object to change scene 2 Answers
Levels, stages, scenes 0 Answers
LoadSceneMode.Single seems to be not working. 0 Answers