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

Page Links


Special Pages


Wikis

?

Render Time: 15ms

DB GetPage 3
Generate Html 0
SaveChanges (1) 9
Render Body 0
Render Sidebar 1