@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / UikitModule
Type Alias: UikitModule ​
type UikitModule = __module;Defined in: ui/uikit/UikitUiRenderer.ts:69
Draws spatial-UI widget trees with @pmndrs/uikit: one uikit root per tree, so a whole menu is a few instanced draw calls instead of one canvas texture and quad per widget.
UIPanelSystem decides which trees come here (see renderer on UIPanelComponent) and draws the rest itself. A tree whose look uikit can't draw (gradients, shadows, patterns, icons, characters its font lacks…) is handed back with the reason, and the canvas path draws it.
Widgets keep their entities and transforms: each child widget becomes an absolutely placed uikit container, placed from its transform relative to the widget above it. Pointer input still hits an invisible quad per widget on the widget's own object, as with canvas widgets.

