Module |
|
Header |
/Engine/Source/Editor/BlueprintGraph/Public/BlueprintNodeTemplateCache.h |
Include |
#include "BlueprintNodeTemplateCache.h" |
Source |
/Engine/Source/Editor/BlueprintGraph/Private/BlueprintNodeTemplateCache.cpp |
UEdGraphNode * GetNodeTemplate
(
UBlueprintNodeSpawner const * NodeSpawner,
UEdGraph * TargetGraph
)
Retrieves a cached template associated with the supplied spawner. Will instantiate a new template if one didn't already exist. If the template-node is not compatible with any cached UEdGraph outer, then we use TargetGraph as a model to create one that will work.
Should return a new/cached template-node (but could be null, or some pre-existing node... depends on the sub-class's Invoke() method).
Parameter |
Description |
---|---|
NodeSpawner |
Acts as the key for the template lookup; takes care of spawning the template-node if one didn't already exist. |
TargetGraph |
Optional param that defines a compatible graph outer (used as an achetype if we don't have a compatible outer on hand). |