Skip to content

API Interface OverrideEntry

github-actions[bot] edited this page Nov 28, 2026 · 4 revisions

Interface: OverrideEntry

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

Properties

active?

active?: boolean;

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


addComponent?

addComponent?: ComponentEntry;

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


addNodes?

addNodes?: NodeEntry[];

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

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:48

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


enabled?

enabled?: boolean;

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

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:51


index?

index?: number;

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

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


name?

name?: string;

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


order?

order?: string[];

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

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:68


removeNode?

removeNode?: boolean;

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

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:61

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


target?

target?: string[];

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

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:52


worlds?

worlds?: string[];

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

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