Interface IDownloadProvider
Provides a mechanism for loading external resources from a URI
Namespace: Unity.Cloud.Gltfast.Loading
Assembly: Unity.Cloud.Gltfast.dll
Syntax
[MovedFrom(true, "GLTFast.Loading", "glTFast", null)]
public interface IDownloadProvider
Methods
RequestAsync(Uri)
Sends a URI request
Declaration
Task<IDownload> RequestAsync(Uri url)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | url | URI to request |
Returns
| Type | Description |
|---|---|
| Task<IDownload> | Object representing the request |
RequestTextureAsync(Uri, bool)
Sends a URI request to load a texture
Declaration
Task<ITextureDownload> RequestTextureAsync(Uri url, bool nonReadable)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | url | URI to request |
| bool | nonReadable | If true, resulting texture is not CPU readable (uses less memory) |
Returns
| Type | Description |
|---|---|
| Task<ITextureDownload> | Object representing the request |