@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / applyPrefabToSnapshotInstances
Function: applyPrefabToSnapshotInstances() ​
ts
function applyPrefabToSnapshotInstances(
hostSnapshot,
nestedUrl,
newNestedSnapshot): ApplyPrefabToSnapshotResult;Defined in: prefab/applyPrefabToSnapshot.ts:122
Patch every top-level-relative nested instance of nestedUrl inside hostSnapshot with newNestedSnapshot. Deeper nesting (B inside C inside A) is NOT touched here — it cascades through C's own file.
Parameters ​
| Parameter | Type |
|---|---|
hostSnapshot | SubtreeSnapshot |
nestedUrl | string |
newNestedSnapshot | SubtreeSnapshot |

