AssetFetchStatus
Describes the download state of an asset requested through ContentProvider.
Items 5
| History | Name | Value | Description | |
|---|---|---|---|---|
| 386 | Success | 0 | The asset loaded successfully. | |
| 386 | Failure | 1 | The asset failed to load successfully. Subsequent attempts are likely to fail; there may be something wrong with the Content string. | |
| 564 | None | 2 | The engine has no information about this asset. The engine never tried to load it. | |
| 564 | Loading | 3 | The engine is in the middle of trying to load this asset. | |
| 564 | TimedOut | 4 | The engine tried to load this asset but timed out. Future attempts to load may succeed. |
Description
Describes the download state of an asset requested through ContentProvider. Every content ID has exactly one status at any given time, transitioning from AssetFetchStatus.None (never requested) to AssetFetchStatus.Loading (fetch in progress) and finally to a terminal state of AssetFetchStatus.Success, AssetFetchStatus.Failure, or AssetFetchStatus.TimedOut.
Query the current status with ContentProvider:GetAssetFetchStatus() and listen for transitions with ContentProvider:GetAssetFetchStatusChangedSignal().