Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
UIDragDetectorDragSpace
Used with DragDetector to set the paradigm which defines the space of inputs/outputs from a custom drag function registered through SetDragStyleFunction() or AddConstraintFunction().
Items
| Name | Value | Description |
|---|---|---|
| Parent | 0 | Designates the input and return values' space as the local space of the detector's parent GuiObject. |
| LayerCollector | 1 | Designates the input and return values' space as that of the LayerCollector. |
| 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. |
Parent
Designates the input and return values' space as the local space of the detector's parent GuiObject.
| Field | Value |
|---|---|
| value | 0 |
LayerCollector
Designates the input and return values' space as that of the LayerCollector.
| Field | Value |
|---|---|
| value | 1 |
Reference
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.
| Field | Value |
|---|---|
| value | 2 |