Navigation
API > API/Editor > API/Editor/BlueprintGraph > API/Editor/BlueprintGraph/FBlueprintNodeTemplateCache
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UEdGraphNode * GetNodeTemplate
(
UBlueprintNodeSpawner const* NodeSpawner, |
Retrieves a cached template associated with the supplied spawner. | BlueprintNodeTemplateCache.h | |
UEdGraphNode * GetNodeTemplate
(
UBlueprintNodeSpawner const* NodeSpawner, |
Retrieves a cached template associated with the supplied spawner. | BlueprintNodeTemplateCache.h |
GetNodeTemplate(UBlueprintNodeSpawner const , UEdGraph )
Description
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.
| Name | GetNodeTemplate |
| Type | function |
| Header File | /Engine/Source/Editor/BlueprintGraph/Public/BlueprintNodeTemplateCache.h |
| Include Path | #include "BlueprintNodeTemplateCache.h" |
| Source | /Engine/Source/Editor/BlueprintGraph/Private/BlueprintNodeTemplateCache.cpp |
UEdGraphNode * GetNodeTemplate
(
UBlueprintNodeSpawner const * NodeSpawner,
UEdGraph * TargetGraph
)
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 |
|---|---|
| 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). |
GetNodeTemplate(UBlueprintNodeSpawner const *, ENoInit)
Description
Retrieves a cached template associated with the supplied spawner. Does NOT attempt to allocate one if it doesn't exist.
| Name | GetNodeTemplate |
| Type | function |
| Header File | /Engine/Source/Editor/BlueprintGraph/Public/BlueprintNodeTemplateCache.h |
| Include Path | #include "BlueprintNodeTemplateCache.h" |
| Source | /Engine/Source/Editor/BlueprintGraph/Private/BlueprintNodeTemplateCache.cpp |
UEdGraphNode * GetNodeTemplate
(
UBlueprintNodeSpawner const * NodeSpawner,
ENoInit
) const
Should return the cached template-node (if one exists, otherwise false).
Parameters
| Name | Remarks |
|---|---|
| NodeSpawner | The spawner you want a template node for. |
| ENoInit | Signifies to use this function over the other (mutating) GetNodeTemplate(). |