docs.unity3d.com
    Show / Hide Table of Contents

    Interface ISceneProvider

    This interface provides access to a list of IScene or a single one as the result of Task operations.

    Namespace: Unity.Cloud.Storage
    Syntax
    public interface ISceneProvider

    Methods

    GetSceneAsync(SceneId)

    Returns a task that results in a IScene when completed.

    Declaration
    Task<IScene> GetSceneAsync(SceneId sceneId)
    Parameters
    Type Name Description
    SceneId sceneId

    A scene Id.

    Returns
    Type Description
    Task<IScene>
    Exceptions
    Type Condition
    HttpRequestException

    Thrown when the request fails to complete. See the returned StatusCode for more details.

    UnauthorizedException
    ConnectionException
    ForbiddenException

    ListScenesAsync()

    Asynchroniously requests a list of IScene.

    Declaration
    Task<IEnumerable<IScene>> ListScenesAsync()
    Returns
    Type Description
    Task<IEnumerable<IScene>>

    Returns a task that results in a list of IScene when completed.

    Exceptions
    Type Condition
    HttpRequestException

    Thrown when the request fails to complete. See the returned StatusCode for more details.

    UnauthorizedException
    ConnectionException
    ForbiddenException
    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