Variable: PanelUI
constPanelUI:Component<{config: {default:string;type:String; };maxHeight: {default:number;type:Float32; };maxWidth: {default:number;type:Float32; }; }>
Defined in: packages/core/src/ui/ui.ts:39
Component for 3D panel UI elements with file‑based configuration.
Remarks
- Compile
.uikitml→ JSON using the UIKitML Vite plugin, then set PanelUIProps.config. - When parented to world space (default), PanelUISystem drives target dimensions from PanelUIProps.maxWidth / PanelUIProps.maxHeight and accounts for world scale.
- Pointer events are forwarded to the UI when
forwardHtmlEventsis enabled.
See
/getting-started/06-spatial-ui