When Value is Changed
Fires while the player types in the input field, after every change to the text.
Introduction
When Value is Changed is an event in the Input Field group of UI Events. It fires while the player types in the input field, after every change to the text. Like every event, it does nothing by itself. It waits for the right moment, then runs all the actions connected to it. Input fields are the typing elements of a UI: this event streams the current value on every change, which suits name entry, chat drafts, and number inputs. The element itself - placeholder, limits, and keyboard behavior - is documented in the UI Input Field guide. For pointer gestures on other elements, compare with When Tapped and When Pressed . When Value is Changed event in the UI Editor Image The When Value is Changed event in the UI Editor. caption When Input Field is Changed, Fires when the text in an input field changes. This event belongs to the "Input Field" group in UI Events.
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 input field 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 text while it is being typed, such as live validation. Read the field’s current text in the connected actions instead of storing it elsewhere. Press Play and type into the field to confirm the actions run on each change.
Example
When Value is Changed event with a count command when-input-field-is-changed-example.webp Example: a label mirrors whatever the player types into the input field. caption
Common Uses
Live search and filtering Character or word counters Validating input while typing
Tip
This event fires for every keystroke. For actions that should run once when the player finishes, react on submit or focus loss instead.