docs.unity3d.com
    目次を表示する/隠す

    Method LoadSceneAsync

    LoadSceneAsync(LoadSceneMode, Boolean, Int32)

    Loads the reference as a scene. This cannot be used a second time until the first load is unloaded. If you wish to call load multiple times on an AssetReference, use Addressables.LoadSceneAsync() and pass your AssetReference in as the key. See the Loading Addressable Assets documentation for more details.

    Declaration
    public virtual AsyncOperationHandle<SceneInstance> LoadSceneAsync(LoadSceneMode loadMode = LoadSceneMode.Single, bool activateOnLoad = true, int priority = 100)
    Parameters
    Type Name Description
    LoadSceneMode loadMode

    Scene load mode.

    Boolean activateOnLoad

    If false, the scene will load but not activate (for background loading). The SceneInstance returned has an Activate() method that can be called to do this at a later point.

    Int32 priority

    Async operation priority for scene loading.

    Returns
    Type Description
    AsyncOperationHandle<SceneInstance>

    The operation handle for the request if there is not a valid cached operation, otherwise return default operation

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)