Pelajari
Kelas Engine
UIDragDetector

*Konten ini diterjemahkan menggunakan AI (Beta) dan mungkin mengandung kesalahan. Untuk melihat halaman ini dalam bahasa Inggris, klik di sini.



Referensi API
Properti
ActivatedCursorIcon
Baca Paralel
Kemampuan: UI
UIDragDetector.ActivatedCursorIcon:ContentId

ActivatedCursorIconContent
Baca Paralel
Kemampuan: UI
UIDragDetector.ActivatedCursorIconContent:Content

BoundingBehavior
Baca Paralel
Kemampuan: UI
UIDragDetector.BoundingBehavior:Enum.UIDragDetectorBoundingBehavior

BoundingUI
Baca Paralel
Kemampuan: UI
UIDragDetector.BoundingUI:GuiBase2d

CursorIcon
Baca Paralel
Kemampuan: UI
UIDragDetector.CursorIcon:ContentId

CursorIconContent
Baca Paralel
Kemampuan: UI
UIDragDetector.CursorIconContent:Content

DragAxis
Baca Paralel
Kemampuan: UI
UIDragDetector.DragAxis:Vector2

DragRelativity
Baca Paralel
Kemampuan: UI
UIDragDetector.DragRelativity:Enum.UIDragDetectorDragRelativity

DragRotation
Baca Paralel
Kemampuan: UI
UIDragDetector.DragRotation:number

DragSpace
Baca Paralel
Kemampuan: UI
UIDragDetector.DragSpace:Enum.UIDragDetectorDragSpace

DragStyle
Baca Paralel
Kemampuan: UI
UIDragDetector.DragStyle:Enum.UIDragDetectorDragStyle

DragUDim2
Baca Paralel
Kemampuan: UI
UIDragDetector.DragUDim2:UDim2

Enabled
Baca Paralel
Kemampuan: UI
UIDragDetector.Enabled:boolean

MaxDragAngle
Baca Paralel
Kemampuan: UI
UIDragDetector.MaxDragAngle:number

MaxDragTranslation
Baca Paralel
Kemampuan: UI
UIDragDetector.MaxDragTranslation:UDim2

MinDragAngle
Baca Paralel
Kemampuan: UI
UIDragDetector.MinDragAngle:number

MinDragTranslation
Baca Paralel
Kemampuan: UI
UIDragDetector.MinDragTranslation:UDim2

ReferenceUIInstance
Baca Paralel
Kemampuan: UI
UIDragDetector.ReferenceUIInstance:GuiObject

ResponseStyle
Baca Paralel
Kemampuan: UI
UIDragDetector.ResponseStyle:Enum.UIDragDetectorResponseStyle

SelectionModeDragSpeed
Baca Paralel
Kemampuan: UI
UIDragDetector.SelectionModeDragSpeed:UDim2

SelectionModeRotateSpeed
Baca Paralel
Kemampuan: UI
UIDragDetector.SelectionModeRotateSpeed:number

UIDragSpeedAxisMapping
Baca Paralel
Kemampuan: UI
UIDragDetector.UIDragSpeedAxisMapping:Enum.UIDragSpeedAxisMapping

Metode
AddConstraintFunction
Kemampuan: UI
UIDragDetector:AddConstraintFunction(
priority:number, function:function
Parameter
priority:number
function:function
Memberikan nilai

GetReferencePosition
Kemampuan: UI
UIDragDetector:GetReferencePosition():UDim2
Memberikan nilai

GetReferenceRotation
Kemampuan: UI
UIDragDetector:GetReferenceRotation():number
Memberikan nilai

SetDragStyleFunction
Kemampuan: UI
UIDragDetector:SetDragStyleFunction(function:function):()
Parameter
function:function
Memberikan nilai
()

Acara
DragContinue
Kemampuan: UI
UIDragDetector.DragContinue(inputPosition:Vector2):RBXScriptSignal
Parameter
inputPosition:Vector2

DragEnd
Kemampuan: UI
UIDragDetector.DragEnd(inputPosition:Vector2):RBXScriptSignal
Parameter
inputPosition:Vector2

DragStart
Kemampuan: UI
UIDragDetector.DragStart(inputPosition:Vector2):RBXScriptSignal
Parameter
inputPosition:Vector2

©2026 Roblox Corporation. Roblox, logo Roblox, dan Powering Imagination termasuk dalam merek dagang kami yang terdaftar dan tidak terdaftar di AS dan negara lainnya.