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.

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

NameValueDescription
Parent0Designates the input and return values' space as the local space of the detector's parent GuiObject.
LayerCollector1Designates the input and return values' space as that of the LayerCollector.
Reference2Designates 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.

FieldValue
value0

LayerCollector

Designates the input and return values' space as that of the LayerCollector.

FieldValue
value1

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.

FieldValue
value2