I am toying with Load Level Async but it isn’t quite what i expect. I will give you an example of how I want to apply it and for what purpose.
For example I have a start screen with Play Game, Help etc. What i would like to do is start loading the first level in the background so that when they click play game it’s already loaded.
The problem at the moment is with my limited knowledge of async as soon as it loads the level the game starts playing, regardless of whether they have clicked play. I could put a boolean in to check and see if they have clicked play before loading the level but that obviously doesn’t fix the problem because then it will still take the same amount of time to load as it would normally.
For further application when you reach the end of the level i have transmissions from an NPC that explain what the next level is all about and if i can’t i might as well start loading the next level while they are reading. How can i achieve this.
At the moment i am using the following:
function Start () {
var async : AsyncOperation = Application.LoadLevelAsync ("level1");
yield async;
Debug.Log ("Loading complete");
}
Can I achieve what i want using loadLevelAsync or do i need to use something else?