Skip to content

@ue-too/ecs / ComponentArrayField

Interface: ComponentArrayField

Defined in: index.ts:188

Definition for an array field in a component schema.

Extends

  • BaseComponentField

Properties

arrayElementType

arrayElementType: ArrayElementType

Defined in: index.ts:196

The element type for array fields (required). Specifies what type each element in the array should be. Can be a built-in type or a custom component type name.


defaultValue?

optional defaultValue: unknown

Defined in: index.ts:172

Default value for the field (used when creating new instances)

Inherited from

BaseComponentField.defaultValue


name

name: string

Defined in: index.ts:168

The name of the field

Inherited from

BaseComponentField.name


optional?

optional optional: boolean

Defined in: index.ts:170

Whether the field is optional (default: false)

Inherited from

BaseComponentField.optional


type

type: "array"

Defined in: index.ts:190

Discriminator for the union type