Skip to content

@relu-interactives/spatial-ecs


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

Function: collectSnapshotSubtreeIds() ​

ts
function collectSnapshotSubtreeIds(snapshot, rootEntityId): number[];

Defined in: prefab/nodeKeys.ts:166

JSON-space subtree ids (root first, BFS) via ParentId edges.

Parameters ​

ParameterType
snapshotSubtreeSnapshot
rootEntityIdnumber

Returns ​

number[]