progress

Allows tracking progress of the loaded assets.

The values stored by the LoadingProgress are eventually consistent. The progress can go slightly out of sync of the actual amounts of loaded assets, as it is not protected by the lock.

Due to the asynchronous nature of AssetStorage, some assets that will eventually be scheduled by coroutines might not be counted by LoadingProgress yet. Calling load and loadAsync is not guaranteed to immediately update the LoadingProgress.total number of assets.

Use the progress for display only and base your actual application logic on AssetStorage API.