Skip to content

@relu-interactives/spatial-ecs


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

Function: decanonicalizeComponentValue() ​

ts
function decanonicalizeComponentValue(value, nodeToId): unknown;

Defined in: prefab/overrides.ts:256

Replace every {$node} marker (at any depth) with the mapped entity id from nodeToId, or null when the node no longer exists. Exact inverse of canonicalization for the id-bearing positions.

Parameters ​

ParameterType
valueunknown
nodeToIdMap<string, number>

Returns ​

unknown