ImGuiWindow:Text Synchronous

Place a text label in the current window layout. Use it to explain a control, show a short status, or separate groups with a heading.

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 to display.

Returns

ImGuiWindow

The same ImGuiWindow handle, so more controls can be added with another method call.

Usage notes

The label is added when this method runs; changing a Luau variable afterward does not rewrite the existing label.

Example

Example
Luau
local window = imgui.create("Example controls")
window:Text("Choose a color below")
Kawaii documentation