Method group is Obsolete

Application.LoadLevelAdditive

切换到手册
Obsolete public static void LoadLevelAdditive (int index);
Obsolete public static void LoadLevelAdditive (string name);

描述

另外加载一个关卡。

LoadLevel 不同,LoadLevelAdditive 不会销毁当前关卡中的对象。将新关卡的 对象添加到当前场景。这可用于创建连续的虚拟世界; 在这些虚拟世界中遍历环境时会加载更多的内容。

LoadLevelAdditive 在初始化阶段(首次调用 FixedUpdate 之前)中下一帧开始时添加新对象(请参阅事件函数的执行顺序)。

另请参阅:AsyncOperationApplication.backgroundLoadingPriority、Application.LoadLevelAdditiveAsync、Application.LoadLevel、Application.LoadLevelAsync。