Constructor ContentDownloadService
ContentDownloadService(string, string, int, int, Func<DownloadOperation>)
Construct a download service.
Declaration
public ContentDownloadService(string name, string cacheDir, int priority = 1, int maxActiveDownloads = 5, Func<ContentDownloadService.DownloadOperation> createDownloadOpFunc = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the service. Each name must be unique. |
string | cacheDir | The root directory of the local cache. |
int | priority | The priority of the service. Higher values are placed at the front of the service list. |
int | maxActiveDownloads | The maximum allowed concurrent downloads. When there are more requests than can be run concurrently, they are queued until some of the active operations complete. |
Func<ContentDownloadService.DownloadOperation> | createDownloadOpFunc | Allows for specifying a custom type of DownloadOperation. By default, this will use UnityWebRequest. |