Scripting API

Scripting API

AssetState

Enum in Abyss.Core, from Abyss.Core.

How far along an asset's load is.

public enum AssetState : uint

Remarks

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

NameValueDescription
NotLoaded0Nothing is on its way, which for a created asset is normal.
Loading1Asked for, not arrived.
Loaded2The bytes are in the world.
Failed3The file was missing, unreadable, or not what it claimed to be.
Unloaded4Let 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.