UBlueprintNodeSpawner::SpawnNode

Simplified version of the other [SpawnNode()](API\Editor\BlueprintGraph\UBlueprintNodeSpawner\SpawnNode\2), that just let's sub-classes specify their own post-spawn delegate (the node class is comes directly from the template parameter).

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

References

   
Module BlueprintGraph
Header /Engine/Source/Editor/BlueprintGraph/Public/BlueprintNodeSpawner.h
Include #include "BlueprintNodeSpawner.h"
template<class NodeType>
NodeType * SpawnNode
(
    [UEdGraph](API\Runtime\Engine\EdGraph\UEdGraph) * ParentGraph,
    [FBindingSet](API\Editor\BlueprintGraph\IBlueprintNodeBinder\FBindingSet) const & Bindings,
    FVector2D const Location,
    [FCustomizeNodeDelegate](API\Editor\BlueprintGraph\UBlueprintNodeSpawner\FCustomizeNodeDelegate) PostSpawnDelegate
) const

Remarks

Simplified version of the other SpawnNode(), that just let's sub-classes specify their own post-spawn delegate (the node class is comes directly from the template parameter). Null if it failed to spawn a node (if NodeClass is null), otherwise a newly spawned node.

Parameters

Name Description
ParentGraph The graph you want the node spawned into.
Bindings The bindings to apply to the node (post spawn).
Location Where you want the new node positioned in the graph.
PostSpawnDelegate A delegate to run after spawning the node, but prior to allocating the node's pins.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library