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

    Method ProvideScene

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

    Load a scene at a specified resource location.

    Declaration
    AsyncOperationHandle<SceneInstance> ProvideScene(ResourceManager resourceManager, IResourceLocation location, LoadSceneMode loadMode, bool activateOnLoad, int priority)
    Parameters
    Type Name Description
    ResourceManager resourceManager

    The resource manager to use for loading dependencies.

    IResourceLocation location

    The location of the scene.

    LoadSceneMode loadMode

    Load mode for the scene.

    Boolean activateOnLoad

    If true, the scene is activated as soon as it finished loading. Otherwise it needs to be activated via the returned SceneInstance object.

    Int32 priority

    The loading priority for the load.

    Returns
    Type Description
    AsyncOperationHandle<SceneInstance>

    An operation handle for the loading of the scene. The scene is wrapped in a SceneInstance object to support delayed activation.

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

    Load a scene at a specified resource location.

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

    The resource manager to use for loading dependencies.

    IResourceLocation location

    The location of the scene.

    LoadSceneParameters loadSceneParameters

    Load parameters for the scene.

    Boolean activateOnLoad

    If true, the scene is activated as soon as it finished loading. Otherwise it needs to be activated via the returned SceneInstance object.

    Int32 priority

    The loading priority for the load.

    Returns
    Type Description
    AsyncOperationHandle<SceneInstance>

    An operation handle for the loading of the scene. The scene is wrapped in a SceneInstance object to support delayed activation.

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