跳转到内容

ComponentMetadata

此内容尚不支持你的语言。

Defined in: component.ts:94

optional animatableFields?: string[]

Defined in: component.ts:101

Keyframeable fields (Sequencer tracks); auto-derived from numeric fields if omitted.


optional assetFields?: AssetFieldMeta[]

Defined in: component.ts:95


optional discoverAssets?: (data) => AssetRef[]

Defined in: component.ts:120

Custom asset discovery for scene preload. Authoritative when present: assetFields are NOT walked for discovery (they still drive editor pickers/ref rewrites), so the callback can exclude values that are not asset refs (e.g. code-registered FSM/BT names).

Record<string, unknown>

AssetRef[]


optional entityFields?: string[]

Defined in: component.ts:97


optional fields?: Record<string, FieldMeta>

Defined in: component.ts:99

Per-field editor presentation policy, keyed by field name.


optional readonlyFields?: string[]

Defined in: component.ts:113

Engine-COMPUTED output fields (Transform’s world-space fields), authored readonly at the C++ ES_PROPERTY site. Never authoring inputs — the editor must not project them into the World (it clobbers the composed value).


optional replicatedFields?: string[]

Defined in: component.ts:107

Fields the network replication layer syncs (RC11). Whole-field granularity; omitted = the component never replicates. Builtins author this at the C++ ES_PROPERTY site (replicated) instead — same single-source rule as fieldMeta.


optional spineFields?: SpineFieldMeta

Defined in: component.ts:96


optional transient?: boolean

Defined in: component.ts:127

Runtime-only state that must never persist: a transient component is skipped by serializeScene (e.g. per-frame pointer/drag/hover state that its driving system rebuilds each frame). Systems still read/write it normally; only scene save omits it.