Skip to content
EN

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 开发者文档 · API 由 TypeDoc 从声明文件生成