@modoki/engine / index / TraitMeta
Interface: TraitMeta
ECS Core
category
category:
"tag"|"component"|"resource"
componentCategory?
optionalcomponentCategory?:string
UI grouping label for the Inspector "Add Component" dropdown (e.g. 'Rendering', 'UI', 'Lighting'). Distinct from the structural category above. Defaults to 'Misc' when omitted.
fields
fields:
Record<string,FieldHint>
name
name:
string
priority?
optionalpriority?:number
role?
optionalrole?:"camera"
trait
trait:
Trait