Skip to content

@relu-interactives/spatial-ecs


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

Function: indexSnapshotByEntity() ​

ts
function indexSnapshotByEntity(snapshot): Map<number, Map<string, unknown>>;

Defined in: prefab/overrides.ts:109

Invert the columnar snapshot into entityId → (componentName → value).

Parameters ​

ParameterType
snapshotSubtreeSnapshot

Returns ​

Map<number, Map<string, unknown>>