Repository navigation
API Interface OverrideEntry
Defined in: src/engine/scene/SceneLoader.ts:47
active?: boolean;Defined in: src/engine/scene/SceneLoader.ts:51
addComponent?: ComponentEntry;Defined in: src/engine/scene/SceneLoader.ts:72
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?: string;Defined in: src/engine/scene/SceneLoader.ts:53
Component id for a field override, e.g. engine.Transform.
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?: string;Defined in: src/engine/scene/SceneLoader.ts:56
index?: number;Defined in: src/engine/scene/SceneLoader.ts:55
Which component of that type, when a node has several.
name?: string;Defined in: src/engine/scene/SceneLoader.ts:50
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?: string;Defined in: src/engine/scene/SceneLoader.ts:73
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?: string[];Defined in: src/engine/scene/SceneLoader.ts:66
The node's tags, replacing the prefab's (ADR 0042).
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?: unknown;Defined in: src/engine/scene/SceneLoader.ts:57
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.
This wiki is generated from docs/wiki/ and the myco module's source on every push to master. Change pages there in a pull request: edits made here are not kept.
Basics
Gameplay
Rendering
Audio
- Playing sound
- Why is there no sound?
- Playlists
- Interactive music
- Sound generators
- Spatial audio
- Audio mixer
- Live mixing
- Loudness
- Audio profiler
- Audio takes
Reference