# Enum.UIDragDetectorDragStyle

Roblox Engine API enum from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- HTML page: https://rapi.sleaze.dev/enums/UIDragDetectorDragStyle/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/enums/UIDragDetectorDragStyle

Used with [`UIDragDetector`](https://rapi.sleaze.dev/classes/UIDragDetector.md) as the paradigm to generate proposed motion, given a stream of input position vectors.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `TranslatePlane` | 0 | 2D motion in the plane of the [`LayerCollector`](https://rapi.sleaze.dev/classes/LayerCollector.md). |
| `TranslateLine` | 1 | 1D motion along the detector's `DragAxis`. |
| `Rotate` | 2 | By default, rotation about the absolute center position of the detector's parent [`GuiObject`](https://rapi.sleaze.dev/classes/GuiObject.md). If `ReferenceUIInstance` is set, rotation happens about that instance's absolute center position. |
| `Scriptable` | 3 | Calculates desired motion via a custom function provided through `SetDragStyleFunction()`. |

## Used by

Each entry lists the class, then the role and names of the members that use this type.

- [UIDragDetector](https://rapi.sleaze.dev/classes/UIDragDetector.md): property `DragStyle`
