Navigation
API > API/Plugins > API/Plugins/ObjectMixerEditor > API/Plugins/ObjectMixerEditor/Views > API/Plugins/ObjectMixerEditor/Views/Widgets > API/Plugins/ObjectMixerEditor/Views/Widgets/SCollectionSelectionButton
- SWidget::OnDragDetected()
- SCollectionSelectionButton::OnDragDetected()
References
| Module | ObjectMixerEditor |
| Header | /Engine/Plugins/Editor/ObjectMixer/ObjectMixer/Source/ObjectMixer/Public/Views/Widgets/SCollectionSelectionButton.h |
| Include | #include "Views/Widgets/SCollectionSelectionButton.h" |
| Source | /Engine/Plugins/Editor/ObjectMixer/ObjectMixer/Source/ObjectMixer/Private/Views/Widgets/SCollectionSelectionButton.cpp |
virtual FReply OnDragDetected
&40;
const FGeometry & MyGeometry,
const FPointerEvent & MouseEvent
&41;
Remarks
Called when Slate detects that a widget started to be dragged. Usage: A widget can ask Slate to detect a drag. OnMouseDown() reply with FReply::Handled().DetectDrag( SharedThis(this) ). Slate will either send an OnDragDetected() event or do nothing. If the user releases a mouse button or leaves the widget before a drag is triggered (maybe user started at the very edge) then no event will be sent.
Parameters
| Name | Description |
|---|---|
| InMyGeometry | Widget geometry |
| InMouseEvent | MouseMove that triggered the drag |