Class ModelConfiguratorExtensions
Extends the ModelConfigurator with methods to use IDataset.
Inherited Members
Namespace: Unity.Cloud.DataStreaming.Runtime.AssetManager
Assembly: Unity.Cloud.DataStreaming.Runtime.AssetManager.dll
Syntax
public static class ModelConfiguratorExtensions
Methods
FromAsset(ModelConfigurator, IAsset, string, string, IServiceHttpClient)
Prepares the configurator with a model that can be streamed from an IAsset with the specified IServiceHttpClient.
Declaration
public static void FromAsset(this ModelConfigurator configurator, IAsset asset, string tag, string fileName, IServiceHttpClient serviceHttpClient)
Parameters
| Type | Name | Description |
|---|---|---|
| ModelConfigurator | configurator | Extended instance. |
| IAsset | asset | Stream the content of this IAsset. |
| string | tag | Restrict the IDataset search with this tag part of its SystemTags. |
| string | fileName | Name of the root tileset. |
| IServiceHttpClient | serviceHttpClient | The IServiceHttpClient used to request Uri content. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | An argument is null. |
FromAsset(ModelConfigurator, IAsset, string, IServiceHttpClient)
Prepares the configurator with a model that can be streamed from an IAsset with the specified IServiceHttpClient.
Declaration
public static void FromAsset(this ModelConfigurator configurator, IAsset asset, string tag, IServiceHttpClient serviceHttpClient)
Parameters
| Type | Name | Description |
|---|---|---|
| ModelConfigurator | configurator | Extended instance. |
| IAsset | asset | Stream the content of this IAsset. |
| string | tag | Restrict the IDataset search with this tag part of its SystemTags. |
| IServiceHttpClient | serviceHttpClient | The IServiceHttpClient used to request Uri content. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | An argument is null. |
FromAsset(ModelConfigurator, IAsset, IServiceHttpClient)
Prepares the configurator with a model that can be streamed from an IAsset with the specified IServiceHttpClient.
Declaration
public static void FromAsset(this ModelConfigurator configurator, IAsset asset, IServiceHttpClient serviceHttpClient)
Parameters
| Type | Name | Description |
|---|---|---|
| ModelConfigurator | configurator | Extended instance. |
| IAsset | asset | Stream the content of this IAsset. |
| IServiceHttpClient | serviceHttpClient | The IServiceHttpClient used to request Uri content. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | An argument is null. |
FromDataset(ModelConfigurator, IDataset, string, IServiceHttpClient)
Prepares the configurator with a model that can be streamed from an IDataset with the specified IServiceHttpClient.
Declaration
public static void FromDataset(this ModelConfigurator configurator, IDataset dataset, string fileName, IServiceHttpClient serviceHttpClient)
Parameters
| Type | Name | Description |
|---|---|---|
| ModelConfigurator | configurator | Extended instance. |
| IDataset | dataset | Stream the content of this IDataset. |
| string | fileName | Name of the root tileset. |
| IServiceHttpClient | serviceHttpClient | The IServiceHttpClient used to request Uri content. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | An argument is null. |
FromDataset(ModelConfigurator, IDataset, IServiceHttpClient)
Prepares the configurator with a model that can be streamed from an IDataset with the specified IServiceHttpClient.
Declaration
public static void FromDataset(this ModelConfigurator configurator, IDataset dataset, IServiceHttpClient serviceHttpClient)
Parameters
| Type | Name | Description |
|---|---|---|
| ModelConfigurator | configurator | Extended instance. |
| IDataset | dataset | Stream the content of this IDataset. |
| IServiceHttpClient | serviceHttpClient | The IServiceHttpClient used to request Uri content. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | An argument is null. |