Skip to content

API Function asset

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Function: asset()

function asset(path): string;

Defined in: src/engine/scene/sceneBuilder.ts:32

An asset reference, relative to the assets root: asset("images/a.png") → "asset:images/a.png".

Parameters

path

string

Returns

string

Clone this wiki locally