Loads the level additively and asynchronously in the background.
function Start () { // Load the level named "MyAddLevel". var async : AsyncOperation = Application.LoadLevelAdditiveAsync ("MyAddLevel"); yield async; Debug.Log ("Loading complete"); }
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { IEnumerator Start() { AsyncOperation async = Application.LoadLevelAdditiveAsync("MyAddLevel"); yield return async; Debug.Log("Loading complete"); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Start() as IEnumerator: async as AsyncOperation = Application.LoadLevelAdditiveAsync('MyAddLevel') yield async Debug.Log('Loading complete')