Application.LoadLevelAdditive Manual     Reference     Scripting  
Scripting > Runtime Classes > Application
Application.LoadLevelAdditive

static function LoadLevelAdditive (index : int) : void

static function LoadLevelAdditive (name : string) : void

Description

Loads a level additively.

Unlike LoadLevel, LoadLevelAdditive does not destroy objects in the current level. Objects from the new level are added to the current scene. This is useful for creating continuous virtual worlds, where more content is loaded in as you walk through the environment.

JavaScripts
// Loads the level with index 1
Application.LoadLevelAdditive (1);

// Load the level named "MoreStuff".
Application.LoadLevel ("MoreStuff");

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
Application.LoadLevelAdditive(1);
Application.LoadLevel("MoreStuff");
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
Application.LoadLevelAdditive(1)
Application.LoadLevel('MoreStuff')