Facepunch.Steamworks Wiki

Steamworks.SteamUGC.DownloadAsync

Syntax

static async Task<bool> DownloadAsync( Data.PublishedFileId fileId, Action<float> progress, int milisecondsUpdateDelay = 60, System.Threading.CancellationToken ct )

Description

Will attempt to download this item asyncronously - allowing you to instantly react to its installation

Arguments

The ID of the file you want to download
Action<float> progress
An optional callback
int milisecondsUpdateDelay 60
How often to call the progress function
System.Threading.CancellationToken ct
Allows you to send a message to cancel the download anywhere during the process

Returns

Task<bool>
true if downloaded and installed correctly