KernelAPI reference
Class AssetBatch
Namespace: MicroEngine.Core
Assembly: MicroEngine.dll
Guide: Game lifecycle and time
Assets started by Preload: progress for a loading screen, errors, and a way to wait.
public sealed class AssetBatchInheritance
Properties
Completed
How many are finished (loaded or failed).
public int Completed { get; }Property Value
Count
How many assets the batch holds.
public int Count { get; }Property Value
Errors
The assets that could not be loaded.
public IReadOnlyList<AssetLoadException> Errors { get; }Property Value
IReadOnlyList<AssetLoadException>
IsDone
Whether every asset is finished.
public bool IsDone { get; }Property Value
Progress
Finished share, from 0 to 1 (1 for an empty batch).
public float Progress { get; }Property Value
Methods
Wait()
Finishes every asset of the batch now, on this thread (decoding what workers have not finished).
public void Wait()Exceptions
Some assets could not be loaded; Errors lists them.