Navigation
API > API/Editor > API/Editor/Kismet
Inheritance Hierarchy
- FEdGraphSchemaAction
- FBlueprintDragDropMenuItem
References
| Module | Kismet |
| Header | /Engine/Source/Editor/Kismet/Public/BlueprintDragDropMenuItem.h |
| Include | #include "BlueprintDragDropMenuItem.h" |
Syntax
struct FBlueprintDragDropMenuItem : public FEdGraphSchemaAction
Remarks
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.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor for USTRUCT() purposes. | |||
FBlueprintDragDropMenuItem
(
FBlueprintActionContext const& Context, |
Sole constructor, which ensures that the RepresentativeAction member is set (and valid). |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AppendAction
(
UBlueprintNodeSpawner const* Action |
||
| TSet< UBlueprintNodeSpawner const * > const & | GetActionSet () |
||
| FSlateBrush const * | GetMenuIcon
(
FSlateColor& ColorOut |
Retrieves the icon brush for this menu entry (to be displayed alongside in the menu). | |
| UBlueprintNodeSpawner const * | |||
| TSharedPtr< FDragDropOperation > | OnDragged
(
FNodeCreationAnalytic AnalyticsDelegate |
Attempts to create a certain drag/drop action with respect to the set UBlueprintNodeSpawner. | |
| FName |
Overridden from FEdGraphSchemaAction
| Type | Name | Description | |
|---|---|---|---|
| void | AddReferencedObjects
(
FReferenceCollector& Collector |
GC. | |
| FName | GetTypeId () |
||
| UEdGraphNode * | PerformAction
(
UEdGraph* ParentGraph, |
Execute this action, given the graph and schema, and possibly a pin that we were dragged from. | |
| UEdGraphNode * | PerformAction
(
UEdGraph* ParentGraph, |
Execute this action, given the graph and schema, and possibly a pin that we were dragged from. |