Skip to content

@modoki/engine / index / TraitMeta

Interface: TraitMeta

ECS Core

category

category: "tag" | "component" | "resource"


componentCategory?

optional componentCategory?: 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?

optional priority?: number


role?

optional role?: "camera"


trait

trait: Trait

Built with Modoki.