Navigation
API > API/Editor > API/Editor/BlueprintGraph > API/Editor/BlueprintGraph/UBlueprintNodeSpawner
Description
Retrieves a cached template for the node that this is set to spawn. Will instantiate a new template if one didn't previously exist. If the template-node is not compatible with any of our cached UEdGraph outers, then we use TargetGraph as a model to create one that will work.
| Name | GetTemplateNode |
| Type | function |
| Header File | /Engine/Source/Editor/BlueprintGraph/Public/BlueprintNodeSpawner.h |
| Include Path | #include "BlueprintNodeSpawner.h" |
| Source | /Engine/Source/Editor/BlueprintGraph/Private/BlueprintNodeSpawner.cpp |
UEdGraphNode * GetTemplateNode
(
UEdGraph * TargetGraph,
FBindingSet const & Bindings
) const
Should return a new/cached template-node (but could be null, or some pre-existing node... depends on the sub-class's Invoke() method).
Parameters
| Name | Remarks |
|---|---|
| TargetGraph | Optional param that defines a compatible graph outer (used as an achetype if we don't have a compatible outer on hand). |
| Bindings | Objects to bind to the template node |