Skip to content

Interface: ScriptAssetProvider ​

Optional engine-provided asset loader; resolve falls back to the scene.

Methods ​

resolve()? ​

ts
resolve?(ref): Promise<any>;

Resolves an asset reference; return null to fall back to the scene.

Parameters ​

ParameterType
refstring

Returns ​

Promise<any>


loadTexture()? ​

ts
loadTexture?(ref): Promise<unknown>;

Loads an image/texture through the engine.

Parameters ​

ParameterType
refstring

Returns ​

Promise<unknown>


load()? ​

ts
load?(ref): Promise<unknown>;

Loads a generic asset through the engine.

Parameters ​

ParameterType
refstring

Returns ​

Promise<unknown>

Suity developer documentation · API generated by TypeDoc