Navigation
Unreal Engine C++ API Reference > Editor > BlueprintGraph > FBlueprintNodeTemplateCache > GetNodeTemplate
References
Module | BlueprintGraph |
Header | /Engine/Source/Editor/BlueprintGraph/Public/BlueprintNodeTemplateCache.h |
Include | #include "BlueprintNodeTemplateCache.h" |
Source | /Engine/Source/Editor/BlueprintGraph/Private/BlueprintNodeTemplateCache.cpp |
UEdGraphNode &42; GetNodeTemplate
&40;
UBlueprintNodeSpawner const &42; NodeSpawner,
UEdGraph &42; TargetGraph
&41;
Remarks
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).
Parameters
Name | 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). |