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.

UIDragDetectorDragStyle

Used with UIDragDetector as the paradigm to generate proposed motion, given a stream of input position vectors.

Items

NameValueDescription
TranslatePlane02D motion in the plane of the LayerCollector.
TranslateLine11D motion along the detector's DragAxis.
Rotate2By default, rotation about the absolute center position of the detector's parent GuiObject. If ReferenceUIInstance is set, rotation happens about that instance's absolute center position.
Scriptable3Calculates desired motion via a custom function provided through SetDragStyleFunction().

TranslatePlane

2D motion in the plane of the LayerCollector.

FieldValue
value0

TranslateLine

1D motion along the detector's DragAxis.

FieldValue
value1

Rotate

By default, rotation about the absolute center position of the detector's parent GuiObject. If ReferenceUIInstance is set, rotation happens about that instance's absolute center position.

FieldValue
value2

Scriptable

Calculates desired motion via a custom function provided through SetDragStyleFunction().

FieldValue
value3