@ue-too/ecs / index / ComponentArrayField
介面: ComponentArrayField
定義於: index.ts:188
Definition for an array field in a component schema.
Extends
BaseComponentField
屬性
arrayElementType
arrayElementType:
ArrayElementType
定義於: 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?
optionaldefaultValue:unknown
定義於: index.ts:172
Default value for the field (used when creating new instances)
繼承自
BaseComponentField.defaultValue
name
name:
string
定義於: index.ts:168
The name of the field
繼承自
BaseComponentField.name
optional?
optionaloptional:boolean
定義於: index.ts:170
Whether the field is optional (default: false)
繼承自
BaseComponentField.optional
type
type:
"array"
定義於: index.ts:190
Discriminator for the union type