SAssetColumnViewRow::OnDragEnter

DRAG AND DROP (DragDrop) Called during drag and drop when the drag enters a widget.

Unreal Engine C++ API Reference > Editor > ContentBrowser > SAssetColumnViewRow

References

   
Module ContentBrowser
Header /Engine/Source/Editor/ContentBrowser/Public/AssetViewWidgets.h
Include #include "AssetViewWidgets.h"
virtual void OnDragEnter
(
    const [FGeometry](API\Runtime\SlateCore\Layout\FGeometry) & MyGeometry,
    const [FDragDropEvent](API\Runtime\SlateCore\Input\FDragDropEvent) & DragDropEvent
)

Remarks

DRAG AND DROP (DragDrop) Called during drag and drop when the drag enters a widget.

Enter/Leave events in slate are meant as lightweight notifications. So we do not want to capture mouse or set focus in response to these. However, OnDragEnter must also support external APIs (e.g. OLE Drag/Drop) Those require that we let them know whether we can handle the content being dragged OnDragEnter.

The concession is to return a can_handled/cannot_handle boolean rather than a full FReply. A reply that indicated whether the contents of the DragDropEvent can potentially be processed by this widget.

Parameters

Name Description
MyGeometry The geometry of the widget receiving the event.
DragDropEvent The drag and drop event.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library