EntitySnapshotEntry
Defined in: packages/save/src/snapshot/types.ts:51
Serialized state for a single entity.
Properties
Section titled “Properties”activeSelf?
Section titled “activeSelf?”
optionalactiveSelf?:boolean
Defined in: packages/save/src/snapshot/types.ts:74
entity.activeSelf at save time. Omitted when true (the default);
restored to true when absent. Only the entity’s own bit is stored —
dormancy inherited from an ancestor follows from that ancestor’s entry.
childName?
Section titled “childName?”
optionalchildName?:string
Defined in: packages/save/src/snapshot/types.ts:63
The name this entity was registered under in parent.addChild().
components
Section titled “components”components:
ComponentSnapshot[]
Defined in: packages/save/src/snapshot/types.ts:57
Auto-collected component snapshots.
id:
number
Defined in: packages/save/src/snapshot/types.ts:53
Entity runtime ID at save time (used to restore references).
parentId?
Section titled “parentId?”
optionalparentId?:number
Defined in: packages/save/src/snapshot/types.ts:61
Save-time ID of the parent entity, if this is a child.
timeScale?
Section titled “timeScale?”
optionaltimeScale?:number
Defined in: packages/save/src/snapshot/types.ts:68
Per-entity time-scale multiplier at save time. Omitted when 1 (the
default) to keep snapshots compact; restored to 1 when absent.
type:
string
Defined in: packages/save/src/snapshot/types.ts:55
Entity type identifier (from
Serializable
Section titled “Serializable”decorator).
userData?
Section titled “userData?”
optionaluserData?:unknown
Defined in: packages/save/src/snapshot/types.ts:59
User-defined entity data (from entity.serialize()).