When Tapped
Fires when the player taps this UI object with a quick touch.
Introduction
When Tapped is an event in the UI group of UI Events. It fires when the player taps this UI object with a quick touch. When it fires, the event hands one value to your script: the Current Position of the tap. Like every event, it does nothing by itself. It waits for the right moment, then runs all the actions connected to it. Tap is the quickest gesture in the UI family, and it sits at the center of a trio: When Pressed fires the moment the finger goes down, When Released fires when it lifts, and this event confirms a complete quick tap. For holding gestures use When Pressed for a While , for dragging use When Touch Move , and the elements that receive these touches - buttons, toggles, sliders - are all described in the UI Element Library . When Tapped event in the UI Editor Image The When Tapped event in the UI Editor. caption When Tapped, Fires when the player taps the UI panel. This event belongs to the "UI" group in UI Events. Trigger: fired by player. Event outputs: Current Position.
Parameters
Current Position where the finger or cursor is on the UI object right now Parameter Description
How to Access
How to Access - When Tapped
Example
When Tapped event with an Open Panel command when-tapped-example.webp Example: every quick tap adds one coin to the player. caption
How to Use
Open the UI Editor and press the UI Property button (the document icon in the top toolbar) without selecting any element, the UI Base panel opens on the right. In the panel's Event Triggers section, find When Tapped and press Scripts + next to it, then add the actions that should run when the event fires: a quick tap response, such as opening a panel. Keep tap actions short so the UI feels instant. Press Play and tap the panel to confirm the event fires once per tap.
Common Uses
Tap to open panels and menus Quick select cards or slots Switch small settings on or off
Tip
Taps are meant to be short. If you need press and hold behavior, use When Pressed for a While instead.