SDropTarget

A widget that displays a hover cue and handles dropping assets of allowed types onto this widget

Unreal Engine C++ API Reference > Editor > EditorWidgets

Inheritance Hierarchy

References

   
Module EditorWidgets
Header /Engine/Source/Editor/EditorWidgets/Public/SDropTarget.h
Include #include "SDropTarget.h"

Syntax

class SDropTarget : public [SCompoundWidget](API\Runtime\SlateCore\Widgets\SCompoundWidget)  

Remarks

A widget that displays a hover cue and handles dropping assets of allowed types onto this widget

Functions

Type Name Description
bool AllowDrop ( TSharedPtr< FDragDropOperation > Dr... )  
void ClearAllowDropCache ()  
void Construct ( const FArguments& InArgs )  
FSlateColor GetBackgroundBrightness () Get the brightness on the background.
EVisibility GetDragOverlayVisibility ()  
bool IsDragOver () Returns true if this drop target is currently being hovered over by a drag drop event
bool OnAllowDrop ( TSharedPtr< FDragDropOperation > Dr... )  
bool OnIsRecognized ( TSharedPtr< FDragDropOperation > Dr... )  

Overridden from SWidget

Type Name Description
void OnDragEnter ( const FGeometry& MyGeometry, const FDragDropEvent& DragDropEven... ) DRAG AND DROP (DragDrop) Called during drag and drop when the drag enters a widget.
void OnDragLeave ( const FDragDropEvent& DragDropEven... ) Called during drag and drop when the drag leaves a widget.
FReply OnDragOver ( const FGeometry& MyGeometry, const FDragDropEvent& DragDropEven... ) Called during drag and drop when the the mouse is being dragged over a widget.
FReply OnDrop ( const FGeometry& MyGeometry, const FDragDropEvent& DragDropEven... ) Called when the user is dropping something onto a widget; terminates drag and drop.
int32 OnPaint ( const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawEl..., int32 LayerId, const FWidgetStyle& InWidgetStyle, bool bParentEnabled ) The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children.
void Tick ( const FGeometry& AllottedGeometry, const double InCurrentTime, const float InDeltaTime ) Ticks this widget with Geometry.

Classes

Type Name Description
Public struct FArguments  

Typedefs

Name Description
FOnDragAction  
FOnDropDeprecated  
FVerifyDrag  

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library