Table of Contents

Class TemplateDownloads

Namespace
Stride.Core.Assets.Templates
Assembly
Stride.Core.Assets.dll

The template package downloads in progress, for the windows that list templates. The template sources report here (Report(TemplateDownload?)); windows show Current and refresh on Changed.

public static class TemplateDownloads
Inheritance
object
TemplateDownloads

Properties

Current

The download in progress (or the last failed one), null when there is none.

public static TemplateDownload? Current { get; }

Property Value

TemplateDownload

Methods

Describe(TemplateDownload)

A short status line for download, e.g. "Downloading Stride.Templates.Samples (2/2): 45.2 / 131.9 MB".

public static string Describe(TemplateDownload download)

Parameters

download TemplateDownload

Returns

string

Report(TemplateDownload?)

Sets Current: a download's progress, its failure, or null once it is done.

public static void Report(TemplateDownload? download)

Parameters

download TemplateDownload

Events

Changed

Raised when Current changes, on the reporting thread (possibly a background one).

public static event Action? Changed

Event Type

Action