Informacje o wersji
Edukacja
Klasa silnika
DragDetector

*Ta zawartość została przetłumaczona przy użyciu narzędzi AI (w wersji beta) i może zawierać błędy. Aby wyświetlić tę stronę w języku angielskim, kliknij tutaj.



Materiały referencyjne dotyczące interfejsów API
Właściwości
ActivatedCursorIcon
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.ActivatedCursorIcon:ContentId

ActivatedCursorIconContent
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.ActivatedCursorIconContent:Content

ApplyAtCenterOfMass
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.ApplyAtCenterOfMass:boolean

Axis
Bez replikacji
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.Axis:Vector3

DragFrame
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.DragFrame:CFrame

DragStyle
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.DragStyle:Enum.DragDetectorDragStyle

Enabled
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.Enabled:boolean

GamepadModeSwitchKeyCode
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.GamepadModeSwitchKeyCode:Enum.KeyCode

KeyboardModeSwitchKeyCode
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.KeyboardModeSwitchKeyCode:Enum.KeyCode

MaxDragAngle
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.MaxDragAngle:number

MaxDragTranslation
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.MaxDragTranslation:Vector3

MaxForce
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.MaxForce:number

MaxTorque
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.MaxTorque:number

MinDragAngle
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.MinDragAngle:number

MinDragTranslation
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.MinDragTranslation:Vector3

Orientation
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.Orientation:Vector3

PermissionPolicy
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.PermissionPolicy:Enum.DragDetectorPermissionPolicy

ReferenceInstance
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.ReferenceInstance:Instance

ResponseStyle
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.ResponseStyle:Enum.DragDetectorResponseStyle

Responsiveness
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.Responsiveness:number

RunLocally
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.RunLocally:boolean

SecondaryAxis
Bez replikacji
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.SecondaryAxis:Vector3

TrackballRadialPullFactor
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.TrackballRadialPullFactor:number

TrackballRollFactor
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.TrackballRollFactor:number

VRSwitchKeyCode
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.VRSwitchKeyCode:Enum.KeyCode

WorldAxis
Bez replikacji
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.WorldAxis:Vector3

WorldSecondaryAxis
Bez replikacji
Odczyt równoległy
Możliwości: Physics, Input
DragDetector.WorldSecondaryAxis:Vector3

Metody
AddConstraintFunction
Możliwości: Physics, Input
DragDetector:AddConstraintFunction(
priority:number, function:function
Parametry
priority:number
function:function

GetReferenceFrame
Możliwości: Physics, Input
DragDetector:GetReferenceFrame():CFrame
Zwroty

RestartDrag
Możliwości: Physics, Input
DragDetector:RestartDrag():()
Zwroty
()

SetDragStyleFunction
Możliwości: Physics, Input
DragDetector:SetDragStyleFunction(function:function):()
Parametry
function:function
Zwroty
()

SetPermissionPolicyFunction
Możliwości: Physics, Input
DragDetector:SetPermissionPolicyFunction(function:function):()
Parametry
function:function
Zwroty
()

Zdarzenia
DragContinue
Możliwości: Physics, Input
DragDetector.DragContinue(
playerWhoDragged:Player, cursorRay:Ray, viewFrame:CFrame, vrInputFrame:OptionalCoordinateFrame, isModeSwitchKeyDown:boolean
Parametry
playerWhoDragged:Player
cursorRay:Ray
viewFrame:CFrame
vrInputFrame:OptionalCoordinateFrame
isModeSwitchKeyDown:boolean

DragEnd
Możliwości: Physics, Input
DragDetector.DragEnd(playerWhoDragged:Player):RBXScriptSignal
Parametry
playerWhoDragged:Player

DragStart
Możliwości: Physics, Input
DragDetector.DragStart(
playerWhoDragged:Player, cursorRay:Ray, viewFrame:CFrame, hitFrame:CFrame, clickedPart:BasePart, vrInputFrame:OptionalCoordinateFrame, isModeSwitchKeyDown:boolean
Parametry
playerWhoDragged:Player
cursorRay:Ray
viewFrame:CFrame
hitFrame:CFrame
clickedPart:BasePart
vrInputFrame:OptionalCoordinateFrame
isModeSwitchKeyDown:boolean

©2026 Roblox Corporation. Nazwa Roblox, logo Roblox oraz hasło „Powering Imagination” należą do naszych zarejestrowanych i niezarejestrowanych znaków towarowych na terenie Stanów Zjednoczonych oraz w innych krajach.