API Reference › Ui › Ui.close
method

Ui.close

Ui.close()

Closes whatever menu is active, so nothing is drawn by Ui.render and no click can fire. A play scene opens with it so a menu left over from the title never lingers.

Example

# doc-check: skip — illustrative
scene Play {
  on enter { Ui.close() }
}
← All symbols