On this page
API method

ui.text

Exact compatibility alias of ui.print.

Syntax

Atlas Script
ui.text(font, x, y, string)

Parameters

font
Atlas font value, usually created with font.create or supplied by font.default.
x
Horizontal component or X coordinate for the requested operation.
y
Vertical component or Y coordinate for the requested operation.
string
Text string rendered by the UI operation.

Return value

See the remarks for the returned value and runtime behavior.

Remarks

Exact compatibility alias of ui.print. It draws replaceable text with the same shared ui-font ID, so a later ui.text or ui.print call replaces the previous printed text.

Examples

Usage pattern
// Replace font, x, y, string with values described above.
ui.text(font, x, y, string);
Reference details are generated from the Atlas Script schema in this documentation source snapshot. Confirm release-specific behavior in the Atlas for Windows build you use.