SAssetDropTarget

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

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

EditorWidgets

Header

/Engine/Source/Editor/EditorWidgets/Public/SAssetDropTarget.h

Include

#include "SAssetDropTarget.h"

Syntax

class SAssetDropTarget : public SDropTarget

Remarks

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

Functions

Name Description

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Protected function

FReply

 

OnDropped

(
    TSharedPtr< FDragDropOperation > Dr...
)

Overridden from SDropTarget

Name Description

Protected function Virtual Const

bool

 

OnAllowDrop

(
    TSharedPtr< FDragDropOperation > Dr...
)

Protected function Virtual Const

bool

 

OnIsRecognized

(
    TSharedPtr< FDragDropOperation > Dr...
)

Overridden from SWidget

Name Description

Protected function Virtual

void

 

OnDragLeave

(
    const FDragDropEvent& DragDropEven...
)

Called during drag and drop when the drag leaves a widget.

Classes

Name

Description

Public struct

FArguments

Typedefs

Name

Description

FIsAssetAcceptableForDrop

Called when we need to check if an asset type is valid for dropping

FIsAssetAcceptableForDropWithReason

Called when we need to check if an asset type is valid for dropping and also will have a reason if it is not

FOnAssetDropped

Called when a valid asset is dropped

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss