ImGuiWindow:destroy Synchronous

  • ImGuiWindow:Destroy

Close the window and disconnect its control listeners. Call this when your tool is finished or from a Close button callback.

Syntax
Luau
ImGuiWindow:destroy() -> ()

Parameters

Call this method with a ImGuiWindow receiver. The colon supplies self implicitly; a dot call must pass the receiver explicitly.

This function takes no arguments.

Returns

()

No values.

Usage notes

The method name is lowercase. Calling it again on the same valid handle is harmless, but adding controls after destruction raises an error.

Example

Example
Luau
local window = imgui.create("Example controls")
window:Text("Press Close to remove this panel")
window:Button("Close", function()
    window:destroy()
end)
Kawaii documentation