Apprendre
Classe de moteur
UIDragDetector

*Ce contenu est traduit en utilisant l'IA (Beta) et peut contenir des erreurs. Pour consulter cette page en anglais, clique ici.



Référence API
Propriétés
ActivatedCursorIcon
Lecture parallèle
Capacités : UI
UIDragDetector.ActivatedCursorIcon:ContentId

ActivatedCursorIconContent
Lecture parallèle
Capacités : UI
UIDragDetector.ActivatedCursorIconContent:Content

BoundingBehavior
Lecture parallèle
Capacités : UI
UIDragDetector.BoundingBehavior:Enum.UIDragDetectorBoundingBehavior

BoundingUI
Lecture parallèle
Capacités : UI
UIDragDetector.BoundingUI:GuiBase2d

CursorIcon
Lecture parallèle
Capacités : UI
UIDragDetector.CursorIcon:ContentId

CursorIconContent
Lecture parallèle
Capacités : UI
UIDragDetector.CursorIconContent:Content

DragAxis
Lecture parallèle
Capacités : UI
UIDragDetector.DragAxis:Vector2

DragRelativity
Lecture parallèle
Capacités : UI
UIDragDetector.DragRelativity:Enum.UIDragDetectorDragRelativity

DragRotation
Lecture parallèle
Capacités : UI
UIDragDetector.DragRotation:number

DragSpace
Lecture parallèle
Capacités : UI
UIDragDetector.DragSpace:Enum.UIDragDetectorDragSpace

DragStyle
Lecture parallèle
Capacités : UI
UIDragDetector.DragStyle:Enum.UIDragDetectorDragStyle

DragUDim2
Lecture parallèle
Capacités : UI
UIDragDetector.DragUDim2:UDim2

Enabled
Lecture parallèle
Capacités : UI
UIDragDetector.Enabled:boolean

MaxDragAngle
Lecture parallèle
Capacités : UI
UIDragDetector.MaxDragAngle:number

MaxDragTranslation
Lecture parallèle
Capacités : UI
UIDragDetector.MaxDragTranslation:UDim2

MinDragAngle
Lecture parallèle
Capacités : UI
UIDragDetector.MinDragAngle:number

MinDragTranslation
Lecture parallèle
Capacités : UI
UIDragDetector.MinDragTranslation:UDim2

ReferenceUIInstance
Lecture parallèle
Capacités : UI
UIDragDetector.ReferenceUIInstance:GuiObject

ResponseStyle
Lecture parallèle
Capacités : UI
UIDragDetector.ResponseStyle:Enum.UIDragDetectorResponseStyle

SelectionModeDragSpeed
Lecture parallèle
Capacités : UI
UIDragDetector.SelectionModeDragSpeed:UDim2

SelectionModeRotateSpeed
Lecture parallèle
Capacités : UI
UIDragDetector.SelectionModeRotateSpeed:number

UIDragSpeedAxisMapping
Lecture parallèle
Capacités : UI
UIDragDetector.UIDragSpeedAxisMapping:Enum.UIDragSpeedAxisMapping

Méthodes
AddConstraintFunction
Capacités : UI
UIDragDetector:AddConstraintFunction(
priority:number, function:function
Paramètres
priority:number
function:function

GetReferencePosition
Capacités : UI
UIDragDetector:GetReferencePosition():UDim2
Retours

GetReferenceRotation
Capacités : UI
UIDragDetector:GetReferenceRotation():number
Retours

SetDragStyleFunction
Capacités : UI
UIDragDetector:SetDragStyleFunction(function:function):()
Paramètres
function:function
Retours
()

Événements
DragContinue
Capacités : UI
UIDragDetector.DragContinue(inputPosition:Vector2):RBXScriptSignal
Paramètres
inputPosition:Vector2

DragEnd
Capacités : UI
UIDragDetector.DragEnd(inputPosition:Vector2):RBXScriptSignal
Paramètres
inputPosition:Vector2

DragStart
Capacités : UI
UIDragDetector.DragStart(inputPosition:Vector2):RBXScriptSignal
Paramètres
inputPosition:Vector2

©2026 Société Roblox. Roblox, le logo Roblox et Powering Imagination font partie de nos marques déposées aux États-Unis et dans d'autres pays.