ecspresso
    Preparing search index...

    Interface AssetHandle<T>

    Handle to an asset that provides status information and access methods

    interface AssetHandle<T> {
        isLoaded: boolean;
        status: AssetStatus;
        get(): T;
        tryGet(): T | undefined;
    }

    Type Parameters

    • T
    Index

    Properties

    Methods

    Properties

    isLoaded: boolean
    status: AssetStatus

    Methods

    • Get the asset value. Throws if asset is not loaded.

      Returns T

    • Get the asset value if loaded, undefined otherwise.

      Returns T | undefined