Navigation
API > API/Editor > API/Editor/EditorWidgets
A widget that displays a hover cue and handles dropping assets of allowed types onto this widget
| Name | SAssetDropTarget |
| Type | class |
| Header File | /Engine/Source/Editor/EditorWidgets/Public/SAssetDropTarget.h |
| Include Path | #include "SAssetDropTarget.h" |
Syntax
class SAssetDropTarget : public SDropTarget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SDropTarget → SAssetDropTarget
- FSlateControlledConstruction → SWidget → SCompoundWidget → SDropTarget → SAssetDropTarget
Structs
| Name | Remarks |
|---|---|
| FArguments |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FAreAssetsAcceptableForDrop | TBaseDelegate_OneParam< bool, TArrayView< FAssetData > > | Called when we need to check if an asset type is valid for dropping | SAssetDropTarget.h |
| FAreAssetsAcceptableForDropWithReason | TBaseDelegate_TwoParams< bool, TArrayView< FAssetData >, FText & > | Called when we need to check if an asset type is valid for dropping and also will have a reason if it is not | SAssetDropTarget.h |
| FIsAssetAcceptableForDrop | TBaseDelegate_OneParam< bool, const UObject * > | Called when we need to check if an asset type is valid for dropping | SAssetDropTarget.h |
| FIsAssetAcceptableForDropWithReason | TBaseDelegate_TwoParams< bool, const UObject *, FText & > | Called when we need to check if an asset type is valid for dropping and also will have a reason if it is not | SAssetDropTarget.h |
| FOnAssetDropped | TBaseDelegate_OneParam< void, UObject * > | Called when a valid asset is dropped | SAssetDropTarget.h |
| FOnAssetsDropped | TBaseDelegate_TwoParams< void, const FDragDropEvent &, TArrayView< FAssetData > > | Called when valid assets are dropped | SAssetDropTarget.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bSupportsMultiDrop | bool | Boolean to determine if this drop target can support multiple assets dropped, or only supports a single asset dropped at a time. | SAssetDropTarget.h | |
| OnAreAssetsAcceptableForDrop | FAreAssetsAcceptableForDrop | Delegate to call to check validity of the asset | SAssetDropTarget.h | |
| OnAreAssetsAcceptableForDropWithReason | FAreAssetsAcceptableForDropWithReason | Delegate to call to check validity of the asset if you will also provide a reason when returning false | SAssetDropTarget.h | |
| OnAssetsDropped | FOnAssetsDropped | Delegate to call when an asset is dropped | SAssetDropTarget.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
SAssetDropTarget.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FReply OnDropped
(
const FGeometry& InGeometry, |
SAssetDropTarget.h |
Overridden from SDropTarget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool OnAllowDrop
(
TSharedPtr< FDragDropOperation > DragDropOperation |
SAssetDropTarget.h | ||
virtual bool OnIsRecognized
(
TSharedPtr< FDragDropOperation > DragDropOperation |
SAssetDropTarget.h |
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnDragLeave
(
const FDragDropEvent& DragDropEvent |
SAssetDropTarget.h |