Skip to content

API Interface OverrideEntry

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

Interface: OverrideEntry

Defined in: src/engine/scene/SceneLoader.ts:47

Properties

active?

active?: boolean;

Defined in: src/engine/scene/SceneLoader.ts:51


addComponent?

addComponent?: ComponentEntry;

Defined in: src/engine/scene/SceneLoader.ts:72


addNodes?

addNodes?: NodeEntry[];

Defined in: src/engine/scene/SceneLoader.ts:80

Child nodes the instance adds (ADR 0086): a flat subtree in the file's own node shape. Nodes with no parent become children of the node target names (the instance root when empty); the others name a parent in this list. Their ids are scoped like the prefab's own, so later overrides can target them, and they mustn't repeat an id of the prefab.


component?

component?: string;

Defined in: src/engine/scene/SceneLoader.ts:53

Component id for a field override, e.g. engine.Transform.


enabled?

enabled?: boolean;

Defined in: src/engine/scene/SceneLoader.ts:59

With component (and index) but no field: start that component enabled or disabled (ADR 0028).


field?

field?: string;

Defined in: src/engine/scene/SceneLoader.ts:56


index?

index?: number;

Defined in: src/engine/scene/SceneLoader.ts:55

Which component of that type, when a node has several.


name?

name?: string;

Defined in: src/engine/scene/SceneLoader.ts:50


order?

order?: string[];

Defined in: src/engine/scene/SceneLoader.ts:71

The order of the node's components, as component ids (repeated for several of a type). Ones not listed follow, in their order; listed ones that aren't there are skipped (ADR 0029).


removeComponent?

removeComponent?: string;

Defined in: src/engine/scene/SceneLoader.ts:73


removeNode?

removeNode?: boolean;

Defined in: src/engine/scene/SceneLoader.ts:82

True: remove the node (and its subtree) that target names; target mustn't be empty (ADR 0086).


tags?

tags?: string[];

Defined in: src/engine/scene/SceneLoader.ts:66

The node's tags, replacing the prefab's (ADR 0042).


target?

target?: string[];

Defined in: src/engine/scene/SceneLoader.ts:49

Path of node ids inside the prefab instance; empty or omitted targets the instance root.


value?

value?: unknown;

Defined in: src/engine/scene/SceneLoader.ts:57


worlds?

worlds?: string[];

Defined in: src/engine/scene/SceneLoader.ts:64

With component (and index) but no field: the tags of the Worlds that component is created in, replacing the prefab entry's worlds (ADR 0033 §3, 0038). ["*"] is every World.

Clone this wiki locally