Create a debug panel widget.
The panel displays real-time debug information in a compact format. Position it in a corner using the position prop.
position
Debug panel props
A VNode representing the debug panel
// In your view functionapp.view((state) => { return ui.layers([ MainContent(state), debugPanel({ stats: state.debugStats, fps: state.fps, frameTimeMs: state.frameTimeMs, showFps: true, showFrameTime: true, showErrors: true, }), ]);}); Copy
// In your view functionapp.view((state) => { return ui.layers([ MainContent(state), debugPanel({ stats: state.debugStats, fps: state.fps, frameTimeMs: state.frameTimeMs, showFps: true, showFrameTime: true, showErrors: true, }), ]);});
Create a debug panel widget.
The panel displays real-time debug information in a compact format. Position it in a corner using the
positionprop.