When Dragged
Fires continuously while the player steers the joystick.
Introduction
When Dragged is an event in the Joystick group of UI Events. It fires continuously while the player steers the joystick. When it fires, the event hands two values to your script: the Angle the thumb points at and the Direction it is dragged in. Like every event, it does nothing by itself. It waits for the right moment, then runs all the actions connected to it. Dragging is the heart of the joystick: between When Pressed and When Release , this event streams the direction and distance of the thumb, which your script turns into character movement. Tune sensitivity and range in the UI Joystick guide. When Dragged event in the UI Editor Image The When Dragged event in the UI Editor. caption When Joystick is Dragged, Fires while the player drags the joystick around. This event belongs to the "Joystick" group in UI Events. Trigger: fired by player.
Parameters
Angle the angle of the thumb on the joystick, measured in degrees Direction the direction the thumb is dragged, from the joystick centre Parameter Description
How to Access
How to Access - When Joystick Dragged
How to Use
Select the joystick element and open its properties, then find its component block. Check that the When Dragged 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 Dragged , then add the actions that should run when the event fires: what should follow the steering direction, such as moving the character. Keep the connected actions light, because this event fires every frame while steering. Press Play and steer the joystick to confirm movement follows the direction.
Example
Example: the character keeps moving in the steered direction for as long as the drag lasts.
Common Uses
Character movement from joystick input Camera or aim steering Continuous actions tied to steering direction
Tip
Read the steering value in your movement logic instead of stacking many actions on this event. Dragged fires every frame, so keep it lean.