Skip to content

@modoki/engine / index / SceneEntityEntry

Interface: SceneEntityEntry ​

Scene & Prefabs ​

added? ​

optional added?: AddedEntity[]

Structural overrides on a prefab instance (see AddedEntity).


guid? ​

optional guid?: 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? ​

optional name?: string


nestedOverrides? ​

optional nestedOverrides?: 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? ​

optional overrides?: Record<number, Record<string, Record<string, unknown>>>


prefab? ​

optional prefab?: string


removed? ​

optional removed?: number[]

Prefab member localIds this instance deleted (top-most only; descendants cascade).


removedTraits? ​

optional removedTraits?: Record<number, string[]>

Per-localId component (trait) names this instance deleted from prefab members.


traits ​

traits: Record<string, Record<string, unknown> | boolean>

Built with Modoki.