imgui.create Synchronous

Create a window that can contain labels, controls, and layout elements. Use it to build a small settings panel or interactive tool. Store the returned window so callbacks can add controls or close it.

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

Parameters

Function parameters
ParameterTypeDescription
titlestringTitle displayed by the window.

Returns

ImGuiWindow

An ImGuiWindow handle. Use its methods to add content and destroy to close it.

Example

Example
Luau
local window = imgui.create("Preferences")
window:Text("Choose your settings")
window:Button("Close", function()
    window:destroy()
end)
Kawaii documentation