Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / setDracoDecoderPath

Function: setDracoDecoderPath() ​

ts
function setDracoDecoderPath(path): void;

Defined in: utils/dracoDecoderPath.ts:15

Override where the DRACO decoder files (draco_wasm_wrapper.js, draco_decoder.wasm, draco_decoder.js) are fetched from. Embedding apps whose bundlers relocate this package's chunks — making the default import.meta.url resolution point at a location that is never populated — should call this before any model loads. The path must end with "/". Pass null to restore the default resolution.

Parameters ​

ParameterType
pathstring | null

Returns ​

void