ImGuiWindow:Text Synchronous

Add a text label to the window. Use it for instructions, headings, or a short explanation beside interactive controls.

Syntax
Luau
ImGuiWindow:Text(text: string) -> ImGuiWindow

Parameters

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

Function parameters
ParameterTypeDescription
textstringText displayed in the window.

Returns

ImGuiWindow

The same ImGuiWindow, allowing another window method to be chained.

Example

Example
Luau
local window = imgui.create("Example controls")
window:Text("Choose a JSON file to import your preferences.")
Kawaii documentation