Aprenda
Classe do mecanismo
UIDragDetector

*Este conteúdo é traduzido por IA (Beta) e pode conter erros. Para ver a página em inglês, clique aqui.



Referência API
Propriedades
ActivatedCursorIcon
Ler Parallel
Recursos: UI
UIDragDetector.ActivatedCursorIcon:ContentId

ActivatedCursorIconContent
Ler Parallel
Recursos: UI
UIDragDetector.ActivatedCursorIconContent:Content

BoundingBehavior
Ler Parallel
Recursos: UI
UIDragDetector.BoundingBehavior:Enum.UIDragDetectorBoundingBehavior

BoundingUI
Ler Parallel
Recursos: UI
UIDragDetector.BoundingUI:GuiBase2d

CursorIcon
Ler Parallel
Recursos: UI
UIDragDetector.CursorIcon:ContentId

CursorIconContent
Ler Parallel
Recursos: UI
UIDragDetector.CursorIconContent:Content

DragAxis
Ler Parallel
Recursos: UI
UIDragDetector.DragAxis:Vector2

DragRelativity
Ler Parallel
Recursos: UI
UIDragDetector.DragRelativity:Enum.UIDragDetectorDragRelativity

DragRotation
Ler Parallel
Recursos: UI
UIDragDetector.DragRotation:number

DragSpace
Ler Parallel
Recursos: UI
UIDragDetector.DragSpace:Enum.UIDragDetectorDragSpace

DragStyle
Ler Parallel
Recursos: UI
UIDragDetector.DragStyle:Enum.UIDragDetectorDragStyle

DragUDim2
Ler Parallel
Recursos: UI
UIDragDetector.DragUDim2:UDim2

Enabled
Ler Parallel
Recursos: UI
UIDragDetector.Enabled:boolean

MaxDragAngle
Ler Parallel
Recursos: UI
UIDragDetector.MaxDragAngle:number

MaxDragTranslation
Ler Parallel
Recursos: UI
UIDragDetector.MaxDragTranslation:UDim2

MinDragAngle
Ler Parallel
Recursos: UI
UIDragDetector.MinDragAngle:number

MinDragTranslation
Ler Parallel
Recursos: UI
UIDragDetector.MinDragTranslation:UDim2

ReferenceUIInstance
Ler Parallel
Recursos: UI
UIDragDetector.ReferenceUIInstance:GuiObject

ResponseStyle
Ler Parallel
Recursos: UI
UIDragDetector.ResponseStyle:Enum.UIDragDetectorResponseStyle

SelectionModeDragSpeed
Ler Parallel
Recursos: UI
UIDragDetector.SelectionModeDragSpeed:UDim2

SelectionModeRotateSpeed
Ler Parallel
Recursos: UI
UIDragDetector.SelectionModeRotateSpeed:number

UIDragSpeedAxisMapping
Ler Parallel
Recursos: UI
UIDragDetector.UIDragSpeedAxisMapping:Enum.UIDragSpeedAxisMapping

Métodos
AddConstraintFunction
Recursos: UI
UIDragDetector:AddConstraintFunction(
priority:number, function:function
Parâmetros
priority:number
function:function

GetReferencePosition
Recursos: UI
UIDragDetector:GetReferencePosition():UDim2
Devolução

GetReferenceRotation
Recursos: UI
UIDragDetector:GetReferenceRotation():number
Devolução

SetDragStyleFunction
Recursos: UI
UIDragDetector:SetDragStyleFunction(function:function):()
Parâmetros
function:function
Devolução
()

Eventos
DragContinue
Recursos: UI
UIDragDetector.DragContinue(inputPosition:Vector2):RBXScriptSignal
Parâmetros
inputPosition:Vector2

DragEnd
Recursos: UI
UIDragDetector.DragEnd(inputPosition:Vector2):RBXScriptSignal
Parâmetros
inputPosition:Vector2

DragStart
Recursos: UI
UIDragDetector.DragStart(inputPosition:Vector2):RBXScriptSignal
Parâmetros
inputPosition:Vector2

©2026 Roblox Corporation, Roblox, o logotipo Roblox e Powering Imagination estão entre nossas marcas registradas e não registradas nos EUA e em outros países.