Navigation
API > API/Editor > API/Editor/BlueprintGraph
Takes care of spawning UK2Node_Event nodes. Acts as the "action" portion of certain FBlueprintActionMenuItems. Will not spawn a new event node if one associated with the specified function already exits (instead, Invoke() will return the existing one). Evolved from FEdGraphSchemaAction_K2AddEvent and FEdGraphSchemaAction_K2ViewNode.
| Name | UBlueprintEventNodeSpawner |
| Type | class |
| Header File | /Engine/Source/Editor/BlueprintGraph/Classes/BlueprintEventNodeSpawner.h |
| Include Path | #include "BlueprintEventNodeSpawner.h" |
Syntax
UCLASS (Transient)
class UBlueprintEventNodeSpawner : public UBlueprintNodeSpawner
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UBlueprintNodeSpawner → UBlueprintEventNodeSpawner
Implements Interfaces
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UBlueprintEventNodeSpawner
(
const FObjectInitializer& ObjectInitializer |
BlueprintEventNodeSpawner.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual UK2Node_Event const * FindPreExistingEvent
(
UBlueprint* Blueprint, |
BlueprintEventNodeSpawner.h | ||
UFunction const * GetEventFunction () |
Retrieves the function that this assigns to spawned nodes (defines the event's signature). | BlueprintEventNodeSpawner.h | |
bool IsForCustomEvent() |
BlueprintEventNodeSpawner.h |
Overridden from UBlueprintNodeSpawner
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FBlueprintNodeSignature GetSpawnerSignature () |
We want to be able to compare spawners, and have a signature that is rebuildable on subsequent runs. | BlueprintEventNodeSpawner.h | |
virtual UEdGraphNode * Invoke
(
UEdGraph* ParentGraph, |
Takes care of spawning a node for the specified graph. | BlueprintEventNodeSpawner.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static UBlueprintEventNodeSpawner * Create
(
UFunction const*const EventFunc, |
Creates a new UBlueprintEventNodeSpawner for the specified function. | BlueprintEventNodeSpawner.h | |
static UBlueprintEventNodeSpawner * Create
(
TSubclassOf< UK2Node_Event > NodeClass, |
Creates a new UBlueprintEventNodeSpawner for custom events. | BlueprintEventNodeSpawner.h |