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.
Luau
ImGuiWindow:Text(text: string) -> ImGuiWindowParameters
Call this method with a ImGuiWindow receiver. The colon supplies self implicitly; a dot call must pass the receiver explicitly.
| Parameter | Type | Description |
|---|---|---|
text | string | Text to display. |
Returns
ImGuiWindowThe 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
Luau
local window = imgui.create("Example controls")
window:Text("Choose a color below")