docs.unity3d.com
    Show / Hide Table of Contents

    Class SceneProvider

    A class that serves a list of IScene or any single IScene from cloud endpoints.

    Inheritance
    Object
    SceneProvider
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Cloud.Storage
    Syntax
    public class SceneProvider : ISceneProvider

    Constructors

    SceneProvider(IServiceHttpClient, ServiceHostConfiguration)

    Returns a SceneProvider using an IServiceHttpClient instance.

    Declaration
    public SceneProvider(IServiceHttpClient serviceHttpClient, ServiceHostConfiguration serviceHostConfiguration)
    Parameters
    Type Name Description
    IServiceHttpClient serviceHttpClient

    A IServiceHttpClient instance.

    ServiceHostConfiguration serviceHostConfiguration

    A configuration instance.

    Methods

    GetSceneAsync(SceneId)

    Returns a task that results in a IScene when completed.

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

    A scene Id.

    Returns
    Type Description
    Task<IScene>
    Implements
    ISceneProvider.GetSceneAsync(SceneId)
    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
    public async Task<IEnumerable<IScene>> ListScenesAsync()
    Returns
    Type Description
    Task<IEnumerable<IScene>>

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

    Implements
    ISceneProvider.ListScenesAsync()
    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