UBlueprintNodeSpawner::SpawnNode

Protected [SpawnNode()](API\Editor\BlueprintGraph\UBlueprintNodeSpawner\SpawnNode\2) that let's sub-classes specify their own post-spawn delegate and node class.

Windows
MacOS
Linux

References

Module

BlueprintGraph

Header

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

Include

#include "BlueprintNodeSpawner.h"

Syntax

template<class NodeType>
NodeType * SpawnNode
(
    TSubclassOf< UEdGraphNode > NodeClass,
    UEdGraph * ParentGraph,
    FBindingSet const & Bindings,
    FVector2D const Location,
    FCustomizeNodeDelegate PostSpawnDelegate
) const

Remarks

Protected SpawnNode() that let's sub-classes specify their own post-spawn delegate and node class.

Returns

Null if it failed to spawn a node (if NodeClass is null), otherwise a newly spawned node.

Parameters

Parameter

Description

NodeClass

The type of node you want spawned.

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.

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