@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 ​
| Parameter | Type |
|---|---|
snapshot | SubtreeSnapshot |
Returns ​
Map<number, Map<string, unknown>>

