Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
UIDragDetectorDragRelativity
Used with DragDetector to set the paradigm which defines the relativity of inputs/outputs from a custom drag function registered through SetDragStyleFunction() or AddConstraintFunction().
Items
| Name | Value | Description |
|---|---|---|
| Absolute | 0 | Designates the input and return values as the absolute target position/rotation in the space defined by DragSpace. |
| Relative | 1 | Designates the input and return values as the change from the current position/rotation in the space defined by DragSpace. |
Absolute
Designates the input and return values as the absolute target position/rotation in the space defined by DragSpace.
| Field | Value |
|---|---|
| value | 0 |
Relative
Designates the input and return values as the change from the current position/rotation in the space defined by DragSpace.
| Field | Value |
|---|---|
| value | 1 |