Version: 5.6
Method group is Obsolete

Application.LoadLevelAdditive

マニュアルに切り替える
Obsolete public static void LoadLevelAdditive (int index);
Obsolete public static void LoadLevelAdditive (string name);

説明

レベルを加算的に読み込みます。

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.

using UnityEngine;
using System.Collections;

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

LoadLevelAdditive は、次のフレームの初回の FixedUpdate の呼び出しが行われる前に初期化が行われ、新しいオブジェクトが追加されます(イベント関数の実行順 を参照してください)。

See Also: AsyncOperation, Application.backgroundLoadingPriority, Application.LoadLevelAdditiveAsync, Application.LoadLevel, Application.LoadLevelAsync.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961