Navigation
API > API/Editor > API/Editor/Kismet
At certain times we want a single menu entry that represents a set of UBlueprintNodeSpawners (generally when all those UBlueprintNodeSpawners wrap the same UField). We do this to keep the menu less jumbled, and instead use the drag/drop action to present a sub-menu to the user (so they can pick the the node type that they want). We do this with both delegates and variable nodes (where the user can pick a getter vs. a setter, etc.).
This class represents those "consolidated" actions, and essentially serves as a FDragDropOperation spawner. It wraps a single UBlueprintNodeSpawner (any one of the set that it is supposed to represent), that it uses to determine the proper FDragDropOperation.
| Name | FBlueprintDragDropMenuItem |
| Type | struct |
| Header File | /Engine/Source/Editor/Kismet/Public/BlueprintDragDropMenuItem.h |
| Include Path | #include "BlueprintDragDropMenuItem.h" |
Syntax
USTRUCT ()
struct FBlueprintDragDropMenuItem : public FEdGraphSchemaAction
Inheritance Hierarchy
- FEdGraphSchemaAction → FBlueprintDragDropMenuItem
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Default constructor for USTRUCT() purposes. | BlueprintDragDropMenuItem.h | ||
FBlueprintDragDropMenuItem
(
FBlueprintActionContext const& Context, |
Sole constructor, which ensures that the RepresentativeAction member is set (and valid). | BlueprintDragDropMenuItem.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActionSet | TSet< TObjectPtr< const UBlueprintNodeSpawner > > | An arbitrary member of the node-spawner subset that this menu entry represents. | BlueprintDragDropMenuItem.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddReferencedObjects
(
FReferenceCollector& Collector |
BlueprintDragDropMenuItem.h | ||
void AppendAction
(
UBlueprintNodeSpawner const* Action |
BlueprintDragDropMenuItem.h | ||
TSet< UBlueprintNodeSpawner const * > const & GetActionSet() |
BlueprintDragDropMenuItem.h | ||
FSlateBrush const * GetMenuIcon
(
FSlateColor& ColorOut |
Retrieves the icon brush for this menu entry (to be displayed alongside in the menu). | BlueprintDragDropMenuItem.h | |
UBlueprintNodeSpawner const * GetSampleAction() |
BlueprintDragDropMenuItem.h | ||
virtual FName GetTypeId() |
BlueprintDragDropMenuItem.h | ||
TSharedPtr< FDragDropOperation > OnDragged
(
FNodeCreationAnalytic AnalyticsDelegate |
Attempts to create a certain drag/drop action with respect to the set UBlueprintNodeSpawner. | BlueprintDragDropMenuItem.h | |
virtual UEdGraphNode * PerformAction
(
UEdGraph* ParentGraph, |
BlueprintDragDropMenuItem.h | ||
virtual UEdGraphNode * PerformAction
(
UEdGraph* ParentGraph, |
BlueprintDragDropMenuItem.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FName StaticGetTypeId() |
BlueprintDragDropMenuItem.h |