Scripting API
Scripting API
AssetState
Enum in Abyss.Core, from Abyss.Core.
How far along an asset's load is.
public enum AssetState : uintRemarks
A load is not finished when it is asked for. That is the whole difference between an asset created from data in memory and one read off a disk, and it is why an id needs a state attached rather than just existing.
Values
| Name | Value | Description |
|---|---|---|
NotLoaded | 0 | Nothing is on its way, which for a created asset is normal. |
Loading | 1 | Asked for, not arrived. |
Loaded | 2 | The bytes are in the world. |
Failed | 3 | The file was missing, unreadable, or not what it claimed to be. |
Unloaded | 4 | Let go of, and nothing held it any more, so it has gone and its id names nothing. The one state a game streaming a level out waits for. |
