Table of Contents

Method Load

Namespace
GrindFest.Content
Assembly
GrindFest.dll

Load(IProgress<string>)

Synchronous content load, for editor code and the test suites only.

The game has exactly one loading path - LoadAsync(IProgress<string>, CancellationToken), awaited by the boot pipeline on every platform. This wrapper exists because the editor tests and the DevTests call it synchronously, and it is safe only where every read completes without ever yielding. That holds on desktop and in the editor (every async primitive in ContentPaths resolves synchronously for a local path), and it does not hold in a browser - where this throws rather than silently loading nothing.

public static ContentLoadReport Load(IProgress<string> progress = null)

Parameters

progress IProgress<string>

Returns

ContentLoadReport