Class ModelConfigurator
Contains methods to configure an IModelStream.
Inherited Members
Namespace: Unity.Cloud.DataStreaming.Runtime
Assembly: solution.dll
Syntax
public sealed class ModelConfigurator
Methods
FromUri(Uri)
Prepares the configurator with a model that can be streamed from a Uri. This uses the UnityWebRequest.
Declaration
public void FromUri(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | A uri pointing to a valid root json tileset. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The |
FromUri(Uri, IServiceHttpClient)
Prepares the configurator with a model that can be streamed from a Uri with the specified IServiceHttpClient.
Declaration
public void FromUri(Uri uri, IServiceHttpClient serviceHttpClient)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | A uri pointing to a valid root json tileset. |
IServiceHttpClient | serviceHttpClient | The http client that to use. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | An argument is null. |