Class SceneProvider | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class SceneProvider

    Provides Scene objects.

    Inheritance
    System.Object
    SceneProvider
    Namespace: UnityEngine.ResourceManagement.ResourceProviders
    Syntax
    public class SceneProvider : ISceneProvider

    Methods

    ProvideSceneAsync(IResourceLocation, IAsyncOperation<IList<Object>>, LoadSceneMode)

    Asynchronously loads a scene.

    Declaration
    public IAsyncOperation<Scene> ProvideSceneAsync(IResourceLocation location, IAsyncOperation<IList<object>> loadDependencyOperation, LoadSceneMode loadMode)
    Parameters
    Type Name Description
    IResourceLocation location

    Location to load.

    IAsyncOperation<System.Collections.Generic.IList<System.Object>> loadDependencyOperation

    Async load operation for scene dependencies.

    LoadSceneMode loadMode

    Scene load mode.

    Returns
    Type Description
    IAsyncOperation<Scene>

    An async operation for the scene.

    Implements
    ISceneProvider.ProvideSceneAsync(IResourceLocation, IAsyncOperation<IList<Object>>, LoadSceneMode)

    ReleaseSceneAsync(IResourceLocation, Scene)

    Release any resources associated with the scene at the given location

    Declaration
    public IAsyncOperation<Scene> ReleaseSceneAsync(IResourceLocation location, Scene scene)
    Parameters
    Type Name Description
    IResourceLocation location

    Location to unload.

    Scene scene

    Reference to scene to be unloaded.

    Returns
    Type Description
    IAsyncOperation<Scene>

    An async operation for the scene, completed when the scene is unloaded.

    Implements
    ISceneProvider.ReleaseSceneAsync(IResourceLocation, Scene)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023