Skip to content

SnapshotContributor

Defined in: packages/save/src/snapshot/types.ts:31

Plugin-supplied snapshot data that doesn’t fit the per-entity/component model. The renderer registers one of these for layer/scene/screen-scope effects.

restore(data): void | Promise<void>

Defined in: packages/save/src/snapshot/types.ts:35

Apply the snapshot fragment back onto live state.

unknown

void | Promise<void>


serialize(): unknown

Defined in: packages/save/src/snapshot/types.ts:33

Build the snapshot fragment. Return undefined to omit the extra.

unknown