跳转到内容

ComponentData

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

ComponentData<C> = C extends BuiltinComponentDef<infer T> ? T : C extends ComponentDef<infer T> ? T : never

Defined in: ecs/component.ts:1246

The value shape a component definition holds — ComponentData<typeof Transform> is TransformData. This is what world.get answers and world.set takes, so a helper generic over a component writes its own signature with it.

C