เรียนรู้
Engine Class
DragDetector

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


สรุป
เหตุการณ์
DragContinue(playerWhoDragged: Player,cursorRay: Ray,viewFrame: CFrame,vrInputFrame: OptionalCoordinateFrame,isModeSwitchKeyDown: boolean):RBXScriptSignal
DragEnd(playerWhoDragged: Player):RBXScriptSignal
DragStart(playerWhoDragged: Player,cursorRay: Ray,viewFrame: CFrame,hitFrame: CFrame,clickedPart: BasePart,vrInputFrame: OptionalCoordinateFrame,isModeSwitchKeyDown: boolean):RBXScriptSignal
สมาชิกที่ได้รับทอด

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

ActivatedCursorIconContent
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.ActivatedCursorIconContent:Content

ApplyAtCenterOfMass
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.ApplyAtCenterOfMass:boolean

Axis
ไม่ซ้ำ
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.Axis:Vector3

DragFrame
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.DragFrame:CFrame

DragStyle
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.DragStyle:Enum.DragDetectorDragStyle

Enabled
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.Enabled:boolean

GamepadModeSwitchKeyCode
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.GamepadModeSwitchKeyCode:Enum.KeyCode

KeyboardModeSwitchKeyCode
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.KeyboardModeSwitchKeyCode:Enum.KeyCode

MaxDragAngle
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.MaxDragAngle:number

MaxDragTranslation
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.MaxDragTranslation:Vector3

MaxForce
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.MaxForce:number

MaxTorque
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.MaxTorque:number

MinDragAngle
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.MinDragAngle:number

MinDragTranslation
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.MinDragTranslation:Vector3

Orientation
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.Orientation:Vector3

PermissionPolicy
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.PermissionPolicy:Enum.DragDetectorPermissionPolicy

ReferenceInstance
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.ReferenceInstance:Instance

ResponseStyle
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.ResponseStyle:Enum.DragDetectorResponseStyle

Responsiveness
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.Responsiveness:number

RunLocally
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.RunLocally:boolean

SecondaryAxis
ไม่ซ้ำ
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.SecondaryAxis:Vector3

TrackballRadialPullFactor
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.TrackballRadialPullFactor:number

TrackballRollFactor
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.TrackballRollFactor:number

VRSwitchKeyCode
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.VRSwitchKeyCode:Enum.KeyCode

WorldAxis
ไม่ซ้ำ
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.WorldAxis:Vector3

WorldSecondaryAxis
ไม่ซ้ำ
อ่านพร้อมๆ กัน
ความสามารถ: Physics, Input
DragDetector.WorldSecondaryAxis:Vector3

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

GetReferenceFrame
ความสามารถ: Physics, Input
DragDetector:GetReferenceFrame():CFrame
ส่งค่ากลับ

RestartDrag
ความสามารถ: Physics, Input
DragDetector:RestartDrag():()
ส่งค่ากลับ
()

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

SetPermissionPolicyFunction
ความสามารถ: Physics, Input
DragDetector:SetPermissionPolicyFunction(function:function):()
พารามิเตอร์
function:function
ส่งค่ากลับ
()

เหตุการณ์
DragContinue
ความสามารถ: Physics, Input
DragDetector.DragContinue(
playerWhoDragged:Player, cursorRay:Ray, viewFrame:CFrame, vrInputFrame:OptionalCoordinateFrame, isModeSwitchKeyDown:boolean
พารามิเตอร์
playerWhoDragged:Player
cursorRay:Ray
viewFrame:CFrame
vrInputFrame:OptionalCoordinateFrame
isModeSwitchKeyDown:boolean

DragEnd
ความสามารถ: Physics, Input
DragDetector.DragEnd(playerWhoDragged:Player):RBXScriptSignal
พารามิเตอร์
playerWhoDragged:Player

DragStart
ความสามารถ: Physics, Input
DragDetector.DragStart(
playerWhoDragged:Player, cursorRay:Ray, viewFrame:CFrame, hitFrame:CFrame, clickedPart:BasePart, vrInputFrame:OptionalCoordinateFrame, isModeSwitchKeyDown:boolean
พารามิเตอร์
playerWhoDragged:Player
cursorRay:Ray
viewFrame:CFrame
hitFrame:CFrame
clickedPart:BasePart
vrInputFrame:OptionalCoordinateFrame
isModeSwitchKeyDown:boolean

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