Skip to content

UnityWebDownloader

The UnityWebDownloader class, a subclass of WebDownloader in the ByteCobra Updater framework, is specifically tailored for Unity applications. It extends the web downloading capabilities of the base WebDownloader class to suit the Unity environment. This class introduces a static property CurrentProgress to track the download progress and incorporates Unity's threading model to handle downloads asynchronously. The CancellationToken property is used to handle the cancellation of download tasks gracefully. The primary function of UnityWebDownloader is to perform web-based file downloads asynchronously within Unity, ensuring that the Unity main thread remains responsive during long-running download tasks.