imgui. create Synchronous
Open a small interactive window and receive its handle. Add labels, controls, and layout items through that handle to build a tool or settings panel.
Luau
imgui.create(title: string) -> ImGuiWindowParameters
| Parameter | Type | Description |
|---|---|---|
title | string | Window title. A currently open window cannot share the same title. |
Returns
ImGuiWindowAn ImGuiWindow handle. Call destroy when the panel is finished.
Usage notes
The window has a built-in close button and can be moved by its title bar. A duplicate live title raises an error.
Example
Luau
local window = imgui.create("Quick settings")
window:Text("Change a setting or close this panel")
window:Button("Close", function()
window:destroy()
end)