docs.unity3d.com
    Show / Hide Table of Contents

    Class MetadataProvider

    Allows querying of geometric metadata in the scene. Can be used to call either the cloud API or a local database.

    Inheritance
    Object
    MetadataProvider
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Cloud.Metadata
    Syntax
    public class MetadataProvider : IMetadataProvider

    Constructors

    MetadataProvider(IServiceHttpClient, ServiceHostConfiguration, String, String)

    Initializes and returns an instance of IMetadataProvider.

    Declaration
    public MetadataProvider(IServiceHttpClient serviceHttpClient, ServiceHostConfiguration cloudConfiguration, string sceneId, string sceneVersionId)
    Parameters
    Type Name Description
    IServiceHttpClient serviceHttpClient

    The HTTP client from which to request the app information.

    ServiceHostConfiguration cloudConfiguration
    String sceneId

    The ID of the scene.

    String sceneVersionId

    The version ID of the scene.

    Methods

    GetAllKeysAsync()

    Gets a list of all the possible root keys in the objects contained in the scene.

    Declaration
    public async Task<IEnumerable<string>> GetAllKeysAsync()
    Returns
    Type Description
    Task<IEnumerable<String>>

    The list of possible root keys in the scene's metadata.

    Implements
    IMetadataProvider.GetAllKeysAsync()

    GetMetadataAsync(GetMetadataParameters)

    Gets a list of in the scene from a list of owners ID.

    Declaration
    public async Task<MatchCollection> GetMetadataAsync(GetMetadataParameters parameters)
    Parameters
    Type Name Description
    GetMetadataParameters parameters

    The parameters containing the filter's conditions to extract only records that fulfill them.

    Returns
    Type Description
    Task<MatchCollection>

    The list of .

    Implements
    IMetadataProvider.GetMetadataAsync(GetMetadataParameters)

    Extension Methods

    MetadataProviderExtensions.GetAllMetadataAsync(IMetadataProvider)
    MetadataProviderExtensions.GetAllIdsAsync(IMetadataProvider)
    MetadataProviderExtensions.Query(IMetadataProvider)
    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