Navigation
API > API/Editor > API/Editor/SceneOutliner
Consolidated drag/drop with parsing functions for the scene outliner
| Name | FSceneOutlinerDragDropPayload |
| Type | struct |
| Header File | /Engine/Source/Editor/SceneOutliner/Public/SceneOutlinerDragDrop.h |
| Include Path | #include "SceneOutlinerDragDrop.h" |
Syntax
struct FSceneOutlinerDragDropPayload
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSceneOutlinerDragDropPayload
(
const FDragDropOperation& InOperation |
Default constructor, resulting in unset contents | SceneOutlinerDragDrop.h | |
FSceneOutlinerDragDropPayload
(
const TArray< TreeType >& InDraggedItems, |
Populate this payload from an array of tree items | SceneOutlinerDragDrop.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DraggedItems | TArray< TWeakPtr< ISceneOutlinerTreeItem > > | List of all dragged items | SceneOutlinerDragDrop.h | |
| SourceOperation | const FDragDropOperation & | The source FDragDropOperation | SceneOutlinerDragDrop.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ForEachItem
(
TFunctionRef< void(TreeType&)> Func |
Apply a function to each item in the payload | SceneOutlinerDragDrop.h | |
TArray< TreeType * > Get() |
Return an array of all tree items in the payload which are of a specified type | SceneOutlinerDragDrop.h | |
TArray< DataType > GetData
(
TFunctionRef< bool(TWeakPtr< ISceneOutlinerTreeItem >, DataType&)> Selector |
Use a selector to retrieve an array of a specific data type from the items in the payload | SceneOutlinerDragDrop.h | |
bool Has() |
Returns true if the payload has an item of a specified type | SceneOutlinerDragDrop.h |