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

    Method ProvideScene

    ProvideScene(ISceneProvider, IResourceLocation, LoadSceneMode, Boolean, Int32)

    Load a scene at a specificed resource location.

    Declaration
    public AsyncOperationHandle<SceneInstance> ProvideScene(ISceneProvider sceneProvider, IResourceLocation location, LoadSceneMode loadSceneMode, bool activateOnLoad, int priority)
    Parameters
    Type Name Description
    ISceneProvider sceneProvider

    The scene provider instance.

    IResourceLocation location

    The location of the scene.

    LoadSceneMode loadSceneMode

    The load mode for the scene.

    Boolean activateOnLoad

    If false, the scene will be loaded in the background and not activated when complete.

    Int32 priority

    The priority for the load operation.

    Returns
    Type Description
    AsyncOperationHandle<SceneInstance>

    Async operation handle that will complete when the scene is loaded. If activateOnLoad is false, then Activate() will need to be called on the SceneInstance returned.

    ProvideScene(ISceneProvider, IResourceLocation, LoadSceneParameters, Boolean, Int32)

    Load a scene at a specificed resource location.

    Declaration
    public AsyncOperationHandle<SceneInstance> ProvideScene(ISceneProvider sceneProvider, IResourceLocation location, LoadSceneParameters loadSceneParameters, bool activateOnLoad, int priority)
    Parameters
    Type Name Description
    ISceneProvider sceneProvider

    The scene provider instance.

    IResourceLocation location

    The location of the scene.

    LoadSceneParameters loadSceneParameters

    The load parameters for the scene.

    Boolean activateOnLoad

    If false, the scene will be loaded in the background and not activated when complete.

    Int32 priority

    The priority for the load operation.

    Returns
    Type Description
    AsyncOperationHandle<SceneInstance>

    Async operation handle that will complete when the scene is loaded. If activateOnLoad is false, then Activate() will need to be called on the SceneInstance returned.

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