# Enum.UIDragDetectorDragSpace

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

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

Used with [`DragDetector`](https://rapi.sleaze.dev/classes/DragDetector.md) to set the paradigm which defines the space of inputs/outputs from a custom drag function.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `Parent` | 0 | Designates the input and return values' space as the local space of the detector's parent [`GuiObject`](https://rapi.sleaze.dev/classes/GuiObject.md). |
| `LayerCollector` | 1 | Designates the input and return values' space as that of the [`LayerCollector`](https://rapi.sleaze.dev/classes/LayerCollector.md). |
| `Reference` | 2 | Designates the input and return values' space as that of the `ReferenceUIInstance`. For `DragRelativity` and `DragUDim2` purposes, the `(0, 0)` origin is the absolute center position of the `ReferenceUIInstance`. If `ReferenceUIInstance` is not `nil`, this will behave the same as **Parent**. |

## 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 `DragSpace`
