跳转到内容

applyDeltaToSource

此内容尚不支持你的语言。

applyDeltaToSource(source, delta): PrefabData

Defined in: prefab/sceneInstance.ts:340

Bake a complete instance delta into a prefab’s source — the STRUCTURAL “Apply to Prefab”. applyOverridesToSource only folds property/component/ name/visibility/metadata edits; this also inserts added entities (linked under their parent) and deletes removed subtree roots and their descendants (never the prefab root), so an instance’s structural changes truly enter the asset. Pure: source is not mutated. Nested-scoped ids (composed slot/… addresses) that don’t exist on this source are skipped — structural apply targets the top-level asset.

PrefabData

SourceDelta

PrefabData