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.

UIDragDetectorBoundingBehavior

Used with UIDragDetector to determine bounding behavior of the dragged UI object when UIDragDetector.BoundingUI is set.

Items

NameValueDescription
Automatic0Mimics EntireObject behavior for a UI object that's entirely contained by the BoundingUI, or else HitPoint for a UI object that's partially outside the BoundingUI.
EntireObject1Bounds the entire dragged UI object within the BoundingUI.
HitPoint2Bounds the dragged UI only by the exact hit/grab point and its respective position after translation/rotation.

Automatic

Mimics EntireObject behavior for a UI object that's entirely contained by the BoundingUI, or else HitPoint for a UI object that's partially outside the BoundingUI.

FieldValue
value0

EntireObject

Bounds the entire dragged UI object within the BoundingUI.

FieldValue
value1

HitPoint

Bounds the dragged UI only by the exact hit/grab point and its respective position after translation/rotation.

FieldValue
value2