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
| Name | Value | Description |
|---|---|---|
| Automatic | 0 | 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. |
| EntireObject | 1 | Bounds the entire dragged UI object within the BoundingUI. |
| HitPoint | 2 | Bounds 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.
| Field | Value |
|---|---|
| value | 0 |
EntireObject
Bounds the entire dragged UI object within the BoundingUI.
| Field | Value |
|---|---|
| value | 1 |
HitPoint
Bounds the dragged UI only by the exact hit/grab point and its respective position after translation/rotation.
| Field | Value |
|---|---|
| value | 2 |