1 min read

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

NameValueDescription
Absolute0Designates the input and return values as the absolute target position/rotation in the space defined by DragSpace.
Relative1Designates 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.

FieldValue
value0

Relative

Designates the input and return values as the change from the current position/rotation in the space defined by DragSpace.

FieldValue
value1