When Value is Changed
Fires when the player drags the slider to a new value.
Introduction
When Value is Changed is an event in the Slider group of UI Events. It fires when the player drags the slider to a new value. Like every event, it does nothing by itself. It waits for the right moment, then runs all the actions connected to it. Sliders turn a drag into a number: this event reports the new value on every change, ideal for volume, sensitivity, or bet size. The element, its steps, and its min-max range live in the UI Slider guide. For on/off choices use the Toggle event instead, and for display-only values the UI Progress Bar . When Value is Changed event in the UI Editor Image The When Value is Changed event in the UI Editor. caption When Slider is Changed, fires when the player drags a UI slider to a new value. This event is attached to: the Slider widget inside a UI panel. It belongs to the "Slider" group because its home is a UI widget, not a 3D object in the game world.
Parameters
None This event has no parameters. The event fires on its own and everything you need is the object running this script. Parameter Description
How to Access
How to Access - When Value is Changed
How to Use
Select the slider element and open its properties, then find its component block. Check that the When Value is Changed 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 Value is Changed , then add the actions that should run when the event fires: how to react to the new slider value, such as changing a volume. Read the slider’s current value in the connected actions instead of assuming a fixed number. Press Play and drag the slider to confirm the actions follow the value.
Example
When Value is Changed event with a Set Volume command when-slider-is-changed-example.webp Example: the music volume follows the slider position in real time while the player drags it. caption
Common Uses
Volume, sensitivity, and brightness settings Zoom or camera distance controls Any setting stored as a range
Tip
This event fires for every small change while dragging. For actions that should run only when the player stops, confirm the final value on release.