เรียนรู้
Engine Class
UIDragDetector

*เนื้อหานี้แปลโดยใช้ AI (เวอร์ชัน Beta) และอาจมีข้อผิดพลาด หากต้องการดูหน้านี้เป็นภาษาอังกฤษ ให้คลิกที่นี่



เอกสารอ้างอิงเกี่ยวกับ API
คุณสมบัติ
ActivatedCursorIcon
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.ActivatedCursorIcon:ContentId

ActivatedCursorIconContent
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.ActivatedCursorIconContent:Content

BoundingBehavior
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.BoundingBehavior:Enum.UIDragDetectorBoundingBehavior

BoundingUI
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.BoundingUI:GuiBase2d

CursorIcon
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.CursorIcon:ContentId

CursorIconContent
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.CursorIconContent:Content

DragAxis
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.DragAxis:Vector2

DragRelativity
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.DragRelativity:Enum.UIDragDetectorDragRelativity

DragRotation
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.DragRotation:number

DragSpace
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.DragSpace:Enum.UIDragDetectorDragSpace

DragStyle
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.DragStyle:Enum.UIDragDetectorDragStyle

DragUDim2
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.DragUDim2:UDim2

Enabled
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.Enabled:boolean

MaxDragAngle
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.MaxDragAngle:number

MaxDragTranslation
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.MaxDragTranslation:UDim2

MinDragAngle
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.MinDragAngle:number

MinDragTranslation
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.MinDragTranslation:UDim2

ReferenceUIInstance
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.ReferenceUIInstance:GuiObject

ResponseStyle
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.ResponseStyle:Enum.UIDragDetectorResponseStyle

SelectionModeDragSpeed
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.SelectionModeDragSpeed:UDim2

SelectionModeRotateSpeed
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.SelectionModeRotateSpeed:number

UIDragSpeedAxisMapping
อ่านพร้อมๆ กัน
ความสามารถ: UI
UIDragDetector.UIDragSpeedAxisMapping:Enum.UIDragSpeedAxisMapping

วิธีการ
AddConstraintFunction
ความสามารถ: UI
UIDragDetector:AddConstraintFunction(
priority:number, function:function
พารามิเตอร์
priority:number
function:function
ส่งค่ากลับ

GetReferencePosition
ความสามารถ: UI
UIDragDetector:GetReferencePosition():UDim2
ส่งค่ากลับ

GetReferenceRotation
ความสามารถ: UI
UIDragDetector:GetReferenceRotation():number
ส่งค่ากลับ

SetDragStyleFunction
ความสามารถ: UI
UIDragDetector:SetDragStyleFunction(function:function):()
พารามิเตอร์
function:function
ส่งค่ากลับ
()

เหตุการณ์
DragContinue
ความสามารถ: UI
UIDragDetector.DragContinue(inputPosition:Vector2):RBXScriptSignal
พารามิเตอร์
inputPosition:Vector2

DragEnd
ความสามารถ: UI
UIDragDetector.DragEnd(inputPosition:Vector2):RBXScriptSignal
พารามิเตอร์
inputPosition:Vector2

DragStart
ความสามารถ: UI
UIDragDetector.DragStart(inputPosition:Vector2):RBXScriptSignal
พารามิเตอร์
inputPosition:Vector2

©2026 Roblox Corporation. Roblox, โลโก้ Roblox และ Powering Imagination เป็นส่วนหนึ่งของเครื่องหมายการค้าที่จดทะเบียน และไม่ได้จดทะเบียนของเราในสหรัฐฯ และประเทศอื่นๆ