EntitySnapshotEntry
Defined in: save/src/types.ts:33
Serialized state for a single entity.
Properties
Section titled “Properties”childName?
Section titled “childName?”
optionalchildName?:string
Defined in: save/src/types.ts:45
The name this entity was registered under in parent.addChild().
components
Section titled “components”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).
parentId?
Section titled “parentId?”
optionalparentId?: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
Serializable
Section titled “Serializable”decorator).
userData?
Section titled “userData?”
optionaluserData?:unknown
Defined in: save/src/types.ts:41
User-defined entity data (from entity.serialize()).