UIDragDetectorクラス
ひとことで言うと
UIDragDetectorは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):Instance which facilitates and encourages interaction with UI elements in an experience.
クラスの関係
受け継いでいるクラス:Object → Instance → UIBase → UIComponent → UIDragDetector
プロパティ(22)
| 名前と書き方 | 説明 |
|---|---|
ActivatedCursorIconUIDragDetector.ActivatedCursorIcon: ContentId | Sets the cursor icon to display when the mouse is activated over the parent of this UIDragDetector. |
ActivatedCursorIconContentUIDragDetector.ActivatedCursorIconContent: Content | Sets the cursor icon to display when the mouse is activated over the parent of this UIDragDetector. Only supports asset URIs |
BoundingBehaviorUIDragDetector.BoundingBehavior: UIDragDetectorBoundingBehavior | Determines bounding behavior of the dragged UI object when the detector's Class.UIDragDetector.BoundingUI|BoundingUI is set. |
BoundingUIUIDragDetector.BoundingUI: GuiBase2d | Instance whose bounding area defines the drag boundaries for the parent GuiObject. |
CursorIconUIDragDetector.CursorIcon: ContentId | Sets the cursor icon to display when the mouse is hovered over the parent of this UIDragDetector. |
CursorIconContentUIDragDetector.CursorIconContent: Content | Sets the cursor icon to display when the mouse is hovered over the parent of this UIDragDetector. Only asset URIs are supported. |
DragAxisUIDragDetector.DragAxis: Vector2 | The drag axis for the UIDragDetector instance when Class.UIDragDetector.DragStyle|DragStyle is set to UIDragDetectorDragStyle.TranslateLine. |
DragRelativityUIDragDetector.DragRelativity: UIDragDetectorDragRelativity | Sets the paradigm which defines the relativity of inputs/outputs from a custom drag function. |
DragRotationUIDragDetector.DragRotation: float | The rotation performed by the current drag. |
DragSpaceUIDragDetector.DragSpace: UIDragDetectorDragSpace | Sets the paradigm which defines the space of inputs/outputs from a custom drag function. |
DragStyleUIDragDetector.DragStyle: UIDragDetectorDragStyle | The paradigm used to generate proposed motion. |
DragUDim2UIDragDetector.DragUDim2: UDim2 | The translation performed by the current drag expressed in a UDim2 value. |
EnabledUIDragDetector.Enabled: boolean | Whether the UIDragDetector responds to user input. |
MaxDragAngleUIDragDetector.MaxDragAngle: float | Along with Class.UIDragDetector.MinDragAngle|MinDragAngle, impedes the detector's attempts to generate rotational motion. |
MaxDragTranslationUIDragDetector.MaxDragTranslation: UDim2 | Along with Class.UIDragDetector.MinDragTranslation|MinDragTranslation, impedes the detector's attempts to generate linear/planar motion. |
MinDragAngleUIDragDetector.MinDragAngle: float | Along with Class.UIDragDetector.MaxDragAngle|MaxDragAngle, impedes the detector's attempts to generate rotational motion. |
MinDragTranslationUIDragDetector.MinDragTranslation: UDim2 | Along with Class.UIDragDetector.MaxDragTranslation|MaxDragTranslation, impedes the detector's attempts to generate linear/planar motion. |
ReferenceUIInstanceUIDragDetector.ReferenceUIInstance: GuiObject | A GuiObject instance whose local space and absolute center position is the reference space and origin for the detector. |
ResponseStyleUIDragDetector.ResponseStyle: UIDragDetectorResponseStyle | The paradigm used to define the response to proposed motion. |
SelectionModeDragSpeedUIDragDetector.SelectionModeDragSpeed: UDim2 | Maximum drag speed for translation. |
SelectionModeRotateSpeedUIDragDetector.SelectionModeRotateSpeed: float | Maximum angle per second the UIDragDetector can rotate at. |
UIDragSpeedAxisMappingUIDragDetector.UIDragSpeedAxisMapping: UIDragSpeedAxisMapping | UIDragSpeedAxisMapping value that determines the **X**/**Y** dimension dragging speeds. |
メソッド(4)
| 名前と書き方 | 説明 |
|---|---|
AddConstraintFunctionUIDragDetector:AddConstraintFunction(priority: int, function: Function): RBXScriptConnection | Adds a function to modify or constrain proposed motion. |
GetReferencePositionUIDragDetector:GetReferencePosition(): UDim2 | Returns the reference UDim2 position of the current drag's reference origin. |
GetReferenceRotationUIDragDetector:GetReferenceRotation(): float | Returns the reference rotation of the current drag's reference element. |
SetDragStyleFunctionUIDragDetector:SetDragStyleFunction(function: Function): () | Passes a function to be used if and only if Class.UIDragDetector.DragStyle|DragStyle is set to UIDragDetectorDragStyle.Scriptable. |
イベント(3)
| 名前と書き方 | 説明 |
|---|---|
DragContinueUIDragDetector.DragContinue(inputPosition: Vector2) | Fires when a user continues dragging the UI element after Class.UIDragDetector.DragStart|DragStart has been initiated. |
DragEndUIDragDetector.DragEnd(inputPosition: Vector2) | Fires when a user stops dragging the UI element. |
DragStartUIDragDetector.DragStart(inputPosition: Vector2) | Fires when a user starts dragging the UI element. |
受け継いでいるメンバー
Instance から受け継いでいるもの(46)
Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・Sandboxed・AddTag・ClearAllChildren・Clone・Destroy・FindFirstAncestor・FindFirstAncestorOfClass・FindFirstAncestorWhichIsA・FindFirstChild・FindFirstChildOfClass・FindFirstChildWhichIsA・FindFirstDescendant・GetActor・GetAttribute・GetAttributeChangedSignal・GetAttributes・GetChildren・GetDebugId・GetDescendants・GetFullName・GetStyled・GetStyledPropertyChangedSignal・GetTags・HasTag・IsAncestorOf・IsDescendantOf・IsPropertyModified・QueryDescendants・RemoveTag・ResetPropertyToDefault・SetAttribute・WaitForChild・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged
Object から受け継いでいるもの(4)
英語の説明とメンバーの一覧は、Roblox Creator Documentation(UIDragDetector)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。