When Release
Fires when the player lets go of the UI button.
Introduction
When Release is an event in the Button group of UI Events. It fires when the player lets go of the button. When it fires, the event hands the player to your script, so you know exactly who interacted. Like every event, it does nothing by itself. It waits for the right moment, then runs all the actions connected to it. Release is the second half of every button gesture: it always follows When Pressed , and when both land on the same button the result is confirmed as When Clicked . Use this event for release-based actions like charging bars, and shape the button with the UI Button guide. When Release event in the UI Editor Image The When Release event in the UI Editor. caption When Button is Released, fires when the player releases a UI button. This event is attached to: the Button widget inside a UI panel. It belongs to the "Button" group because its home is a UI widget, not a 3D object in the game world.
Parameters
Player the player who released the button Parameter Description
How to Access
How to Access - When Released
Example
When Release event with Set Color and Fire Charged Shot actions when-button-is-released-example.webp Example: the camera resets over one second as soon as the player lets go of the button. caption
How to Use
Select the Button element and open its properties, then find its component block. Check that the When Released event is listed in the block; if it is hidden, press the three dots (...) at the top right of the block and check it in the pop-up list. Press Scripts + next to When Released , then add the actions that should run when the event fires: what should run when the button comes back up, such as confirming a charged action. Pair it with When Pressed for press and release pairs like charge and fire. Press Play and release the button to confirm the event fires on the release.
Common Uses
Confirm or release charged actions Return buttons to their resting visuals Stop loops that started on press
Tip
A release can miss if the button is disabled mid-press. Test what happens when the player drags off the button while holding it down.