ImGuiWindow: Text Synchronous
Add a text label to the window. Use it for instructions, headings, or a short explanation beside interactive controls.
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 displayed in the window. |
Returns
ImGuiWindowThe same ImGuiWindow, allowing another window method to be chained.
Example
Luau
local window = imgui.create("Example controls")
window:Text("Choose a JSON file to import your preferences.")