docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    In This Article
    • ContentDownloadService(string, string, int, int, Func<DownloadOperation>)
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)