On this page
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);