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