Skip to content

API Interface OverrideEntry

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

Interface: OverrideEntry

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

Properties

active?

active?: boolean;

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


addComponent?

addComponent?: ComponentEntry;

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


addNodes?

addNodes?: NodeEntry[];

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

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

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


enabled?

enabled?: boolean;

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

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


index?

index?: number;

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

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


name?

name?: string;

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


order?

order?: string[];

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

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


removeNode?

removeNode?: boolean;

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

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

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


target?

target?: string[];

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

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


worlds?

worlds?: string[];

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

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