UBlueprintNodeSpawner::GetTemplateNode

Retrieves a cached template for the node that this is set to spawn.

Unreal Engine C++ API Reference > Editor > BlueprintGraph > UBlueprintNodeSpawner

References

   
Module BlueprintGraph
Header /Engine/Source/Editor/BlueprintGraph/Public/BlueprintNodeSpawner.h
Include #include "BlueprintNodeSpawner.h"
Source /Engine/Source/Editor/BlueprintGraph/Private/BlueprintNodeSpawner.cpp
[UEdGraphNode](API\Runtime\Engine\EdGraph\UEdGraphNode) * GetTemplateNode
(
    [UEdGraph](API\Runtime\Engine\EdGraph\UEdGraph) * TargetGraph,
    [FBindingSet](API\Editor\BlueprintGraph\IBlueprintNodeBinder\FBindingSet) const & Bindings
) const

Remarks

Retrieves a cached template for the node that this is set to spawn. Will instantiate a new template if one didn't previously exist. If the template-node is not compatible with any of our cached UEdGraph outers, 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
TargetGraph Optional param that defines a compatible graph outer (used as an achetype if we don't have a compatible outer on hand).
Bindings Objects to bind to the template node

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library