Skip to content

Hud

Hud(__namedParameters): Element | null

Defined in: packages/engine/src/components/Screen.tsx:105

UI for the screen, from wherever it sits: inside the canvas, where the DOM cannot draw, or beside it. Its children arrive in the screen layer still reading every context around the Hud, so useEntity() inside one reads the Entity it sits in.

Parameter Type
__namedParameters { children?: ReactNode; }
__namedParameters.children? ReactNode

Element | null