When Release
Fires when the player lets go of this UI object.
Introduction
When Release is an event in the UI group of UI Events. It fires when the player lets go of this UI object. When it fires, the event hands one value to your script: the Current Position where the touch lifted. Like every event, it does nothing by itself. It waits for the right moment, then runs all the actions connected to it. Every release needs a press first: this event completes the gesture started by When Pressed , and a quick down-and-up is confirmed as When Tapped . Use the pair to build press-and-hold mechanics, or add When Pressed for a While when duration matters. Sliders and toggles also report releases - their guides are the UI Slider and UI Toggle . When Release event in the UI Editor Image The When Release event in the UI Editor. caption When Released, Fires when the player releases a press on 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 Released
Example
When Release event with a Hide Drag Ghost command when-released-example.webp Example: all audio stops as soon as the player lets go of the object. 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 Released and press Scripts + next to it, then add the actions that should run when the event fires: what should run when the player lets go. Pair it with When Pressed for complete press and release handling. Press Play and release the panel to confirm the timing.
Common Uses
End drag interactions Finalize press and release pairs Snap objects back after a drag
Tip
If the player slides off the object before releasing, check in play mode whether your setup still needs a fallback.