FBlueprintNodeTemplateCache::GetNodeTemplate

Retrieves a cached template associated with the supplied spawner.

Windows
MacOS
Linux

References

Module

BlueprintGraph

Header

/Engine/Source/Editor/BlueprintGraph/Public/BlueprintNodeTemplateCache.h

Include

#include "BlueprintNodeTemplateCache.h"

Source

/Engine/Source/Editor/BlueprintGraph/Private/BlueprintNodeTemplateCache.cpp

Syntax

UEdGraphNode * GetNodeTemplate
(
    UBlueprintNodeSpawner const * NodeSpawner,
    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.

Returns

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

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss