Skip to content

Interface: ScriptAssetScene ​

Scene capabilities used by createScriptAssets.

The unified SDK Scene exposes assets; engine/runtime hosts that predate it (or unit-test fakes) may still provide resolveAsset/loadTexture directly. assets wins when present so scripts share the scene loader.

Properties ​

PropertyModifierType
assets?readonly{ resolve(ref): Promise<any>; loadTexture?(ref): Promise<unknown>; load?(ref): Promise<unknown>; }
assets.resolvepublic(ref) => Promise<any>
assets.loadTexture?public(ref) => Promise<unknown>
assets.load?public(ref) => Promise<unknown>

Methods ​

resolveAsset()? ​

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

Parameters ​

ParameterType
refstring

Returns ​

Promise<any>


loadTexture()? ​

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

Parameters ​

ParameterType
refstring

Returns ​

Promise<unknown>


load()? ​

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

Parameters ​

ParameterType
refstring

Returns ​

Promise<unknown>

Suity developer documentation · API generated by TypeDoc