@modoki/engine / index / SceneEntityEntry
Interface: SceneEntityEntry
Scene & Prefabs
added?
optionaladded?:AddedEntity[]
Structural overrides on a prefab instance (see AddedEntity).
guid?
optionalguid?:string
A prefab-instance root's stable, scene-authored GUID. Prefab roots get NO guid from the prefab template (members clear theirs) and their guid is never an override, so without this they're unaddressable across a re-save. Persisted on the node and re-applied to the spawned root on load (then it anchors deriveInstanceMemberGuids), so UI refs into the instance survive.
id
id:
number
name?
optionalname?:string
nestedOverrides?
optionalnestedOverrides?:NestedOverridePaths
Scene-level overrides on this instance's NESTED instances (a prefab's own internal nested prefab instances, e.g. a ship's engine flames). Path-keyed so the scene can reach a member at ANY nesting depth (see NestedOverridePaths).
overrides?
optionaloverrides?:Record<number,Record<string,Record<string,unknown>>>
prefab?
optionalprefab?:string
removed?
optionalremoved?:number[]
Prefab member localIds this instance deleted (top-most only; descendants cascade).
removedTraits?
optionalremovedTraits?:Record<number,string[]>
Per-localId component (trait) names this instance deleted from prefab members.
traits
traits:
Record<string,Record<string,unknown> |boolean>