API Reference › Ui › Ui.clicked
method

Ui.clicked

Ui.clicked(id: UI_Name) -> bool

True on the frame a focused control with that id was activated (Enter, Space, or pad A). The event form is @On(UiClicked) handler … { if id == UI_Name { … } }; either can become another scene.

Example

# doc-check: skip — illustrative
handler Menu phase Update {
  if Ui.clicked(id: UI_Play) { become Play }
}
← All symbols