跳转到内容

BuiltinComponentDef

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

Defined in: ecs/component.ts:524

A component the engine ships, whose storage lives in C++. Carries the same reflection a ComponentDef does, authored at the ES_PROPERTY site instead of in a metadata argument, so tooling reads both the same way.

T

readonly animatableFields: readonly string[]

Defined in: ecs/component.ts:539


readonly assetFields: readonly AssetFieldMeta[]

Defined in: ecs/component.ts:535


readonly colorKeys: readonly string[]

Defined in: ecs/component.ts:538


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

Defined in: ecs/component.ts:545

Record<string, unknown>

AssetRef[]


readonly entityFields: readonly string[]

Defined in: ecs/component.ts:537


readonly fieldMeta: Readonly<Record<string, FieldMeta>>

Defined in: ecs/component.ts:544


readonly readonlyFields: readonly string[]

Defined in: ecs/component.ts:543

Fields authored readonly (engine-computed outputs); the editor never writes them back.


readonly renderableField: string | null

Defined in: ecs/component.ts:550

Bool field gating this component’s visibility, or null if it draws nothing. Authored ES_COMPONENT(renderable=<field>).


readonly replicatedFields: readonly string[]

Defined in: ecs/component.ts:541

Fields authored replicated at the C++ ES_PROPERTY site (via COMPONENT_META).


readonly optional skeletalFields?: SkeletalFieldMeta

Defined in: ecs/component.ts:536


readonly transient: boolean

Defined in: ecs/component.ts:547

Runtime-only: omitted from scene serialization. Authored ES_COMPONENT(transient).