Repository navigation
API Interface FieldOptions
Defined in: src/engine/core/registry.ts:117
Options on a declared field (ADR 0033, 0038, 0131).
animatable?: boolean | readonly string[];Defined in: src/engine/core/registry.ts:154
Whether an animation clip, timeline or tween may drive this field (ADR 0371, completing 0159); the Inspector
offers key buttons only on animatable fields. Default: true for Number, Vector2, Vector3, Quaternion,
Color, Boolean, a field with choices, and AssetRef; false for strings without choices, lists, plain
objects and other types. Set false where animating would break an invariant, such as a physics body's
bodyType, or true to opt a field in that the default leaves out.
On a PlainObject field, a list of sub-paths opts those in: animatable: ["targetPosition"] lets a clip drive
spring.targetPosition (D86); the object as a whole stays not animatable. Each entry is a path below the
field, keys joined by dots (["pose.position"] for a nested object), and names one leaf exactly: an entry
doesn't open the keys below it. isFieldAnimatable(type, "spring.targetPosition") resolves it.
choices?: FieldChoices;Defined in: src/engine/core/registry.ts:125
The values this field (or each item of a list field) may take; the editor shows a dropdown.
description?: string;Defined in: src/engine/core/registry.ts:141
One or two plain sentences saying what the field is for (ADR 0159). The editor shows it as the field's tooltip. Metadata only: not saved in scenes, not replicated, ignored at run time. A list field's description applies to the list, not to each item.
hidden?: boolean;Defined in: src/engine/core/registry.ts:135
Not shown in the Inspector, for fields another editor owns (ADR 0131). The field is still saved, loaded and replicated as usual.
kind?:
| AssetFieldKind
| readonly AssetFieldKind[];Defined in: src/engine/core/registry.ts:130
For an AssetRef field, or each item of an [AssetRef] list: the kind (or kinds) of asset it
holds (ADR 0131). The editor offers only those. Only guides the editor.
predicted?: boolean;Defined in: src/engine/core/registry.ts:121
Roll back and re-simulate this field on the owning client (T13). Implies replicate.
quantize?: number;Defined in: src/engine/core/registry.ts:123
Send numbers rounded to this step (e.g. 0.01) to save bandwidth (T8, T11).
replicate?: boolean;Defined in: src/engine/core/registry.ts:119
Replicate this field from server to clients on replicated nodes (T11).
view?: "radians" | "degrees" | "quaternion";Defined in: src/engine/core/registry.ts:156
For a Quaternion field: how the Inspector shows it (ADR 0165; default: the editor's preference). Editor-only.
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