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.

Syntax
Luau
imgui.create(title: string) -> ImGuiWindow

Parameters

Function parameters
ParameterTypeDescription
titlestringWindow title. A currently open window cannot share the same title.

Returns

ImGuiWindow

An 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

Example
Luau
local window = imgui.create("Quick settings")
window:Text("Change a setting or close this panel")
window:Button("Close", function()
    window:destroy()
end)
Kawaii documentation