Class MetadataProvider
Allows querying of geometric metadata in the scene. Can either be used to called the cloud api or a local database.
Inherited Members
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 |
|---|---|---|
| Unity.Cloud.Common.IServiceHttpClient | serviceHttpClient | The HTTP client from which to request the app information. |
| Unity.Cloud.Common.ServiceHostConfiguration | cloudConfiguration | |
| String | sceneId | The id of the scene |
| String | sceneVersionId | The version id of the scene |
Methods
GetAllKeysAsync()
Get 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
GetMetadataAsync(GetMetadataParameters)
Get a list of Match 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 filters conditions to extract only records that fulfill them |
Returns
| Type | Description |
|---|---|
| Task<MatchCollection> | The list of Match |