Navigation
API > API/Editor > API/Editor/BlueprintGraph > API/Editor/BlueprintGraph/UBlueprintFunctionNodeSpawner
Description
Takes care of spawning a node for the specified graph. Looks to see if the supplied graph is transient, and if so, spawns a NOT fully formed node (intended for template use).
This function is intended to be overridden; sub-classes may return a pre-existing node, instead of a newly allocated one (for cases where only one instance of the node type can exist). Callers should check for this case upon use.
Virtual Inheritance
- UBlueprintNodeSpawner::Invoke → UBlueprintFieldNodeSpawner::Invoke → UBlueprintFunctionNodeSpawner::Invoke
| Name | Invoke |
| Type | function |
| Header File | /Engine/Source/Editor/BlueprintGraph/Classes/BlueprintFunctionNodeSpawner.h |
| Include Path | #include "BlueprintFunctionNodeSpawner.h" |
| Source | /Engine/Source/Editor/BlueprintGraph/Private/BlueprintFunctionNodeSpawner.cpp |
virtual UEdGraphNode * Invoke
(
UEdGraph * ParentGraph,
FBindingSet const & Bindings,
FVector2D const Location
) const
Null if it failed to spawn a node, otherwise a newly spawned node or possibly one that already existed.
Parameters
| Name | Remarks |
|---|---|
| ParentGraph | The graph you want the node spawned into. |
| Bindings | |
| Location | Where you want the new node positioned in the graph. |