LoadLevelAdditive
Loads a level additively.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
LoadLevelAdditive(int)
Loads a level additively.
public static void LoadLevelAdditive(int index)
Parameters
Remarks
Unlike Application.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.
LoadLevelAdditive adds new objects in the beginning of the next frame at the Inititialization stage prior to the first MonoBehaviour.FixedUpdate() call (refer to Order of execution for event functions).
Additional Resources: AsyncOperation, Application.backgroundLoadingPriority, Application.LoadLevelAdditiveAsync, Application.LoadLevel, Application.LoadLevelAsync.
LoadLevelAdditive(string)
Loads a level additively.
public static void LoadLevelAdditive(string name)
Parameters
Remarks
Unlike Application.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.
LoadLevelAdditive adds new objects in the beginning of the next frame at the Inititialization stage prior to the first MonoBehaviour.FixedUpdate() call (refer to Order of execution for event functions).