docs.unity3d.com
  • Manual
  • Scripting API
  • Changelog
  • License

    • Unity.DigitalTwins.Storage
      • ISceneProvider
      • IWorkspaceProvider
      • SceneProvider
      • WorkspaceProvider
    • Unity.DigitalTwins.Storage.Editor
      • PlaceholderEditor
    • Unity.DigitalTwins.Storage.Runtime
      • PlaceholderRuntime
    • Unity.DigitalTwins.Storage.Tests.Runtime
      • SceneProviderTests
      • WorkspaceProviderTests

    Class SceneProvider

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

    Inheritance
    Object
    SceneProvider
    Implements
    ISceneProvider
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.DigitalTwins.Storage
    Assembly: solution.dll
    Syntax
    public class SceneProvider : ISceneProvider

    Constructors

    SceneProvider(IServiceHttpClient, CloudConfiguration)

    Returns a SceneProvider using an Unity.DigitalTwins.Common.IServiceHttpClient instance.

    Declaration
    public SceneProvider(IServiceHttpClient serviceHttpClient, CloudConfiguration cloudConfiguration)
    Parameters
    Type Name Description
    Unity.DigitalTwins.Common.IServiceHttpClient serviceHttpClient

    A IServiceHttpClient instance.

    Unity.DigitalTwins.Common.CloudConfiguration cloudConfiguration

    A CloudConfiguration instance.

    Methods

    GetSceneAsync(String)

    Returns a Task that results in a Unity.DigitalTwins.Common.IScene when completed.

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

    A valid IScene identifier (Id or absolute url).

    Returns
    Type Description
    Task<Unity.DigitalTwins.Common.IScene>
    Remarks

    Use this to get latest list of Unity.DigitalTwins.Common.Permission for a Unity.DigitalTwins.Common.IScene and enforces all authenticated access and features that rely on them. The sceneId string parameter can either be the Id of the Unity.DigitalTwins.Common.IScene, or its absolute url.

    ListScenesAsync()

    Returns a Task that results in a list of Unity.DigitalTwins.Common.IScene when completed.

    Declaration
    public async Task<IEnumerable<IScene>> ListScenesAsync()
    Returns
    Type Description
    Task<IEnumerable<Unity.DigitalTwins.Common.IScene>>

    Implements

    ISceneProvider
    Back to top Generated by DocFX
    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