Skip to content

EntitySnapshotEntry

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

Serialized state for a single entity.

optional childName?: string

Defined in: save/src/types.ts:45

The name this entity was registered under in parent.addChild().


components: ComponentSnapshot[]

Defined in: save/src/types.ts:39

Auto-collected component snapshots.


id: number

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

Entity runtime ID at save time (used to restore references).


optional parentId?: number

Defined in: save/src/types.ts:43

Save-time ID of the parent entity, if this is a child.


type: string

Defined in: save/src/types.ts:37

Entity type identifier (from

decorator).


optional userData?: unknown

Defined in: save/src/types.ts:41

User-defined entity data (from entity.serialize()).