FBlueprintNodeTemplateCache::GetNodeTemplate

Retrieves a cached template associated with the supplied spawner.

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](API\Runtime\Engine\EdGraph\UEdGraphNode) * GetNodeTemplate
(
    [UBlueprintNodeSpawner](API\Editor\BlueprintGraph\UBlueprintNodeSpawner) const * NodeSpawner,
    [UEdGraph](API\Runtime\Engine\EdGraph\UEdGraph) * TargetGraph
)

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).

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library