What it does
ui.setText sets Text on an ui object. It takes id and text.
Signature
ui.setText(id, text)Arguments
idtext
Example · generated
function start() { ui.createText('text', 'Hello', { x: 100, y: 120, fontSize: 24 }); ui.setText('text', 'Hello');}ui.createText is there to give the call something to act on; ui.setText is the line that matters. The code sits in start(), which the engine calls once, when the entity spawns.