devtools¶
A global table of functions: devtools.<function>(…).
The devtools table of scripts: when to draw, and what to show in the debug window.
frame_open¶
devtools.frame_open: () -> boolean
Whether an ImGui frame is open: imgui calls do something only then.
on_gui¶
devtools.on_gui: (callback: (...any) -> ...any) -> number
Registers a function the host calls every frame inside the ImGui frame; returns an id for remove_gui.
remove_gui¶
devtools.remove_gui: (id: number) -> ()
watch¶
devtools.watch: (name: string, value: any) -> ()
Shows a value under its name in the engine's debug window, updated whenever the script calls this again.