UBlueprintNodeSpawner::Create

Creates a new [UBlueprintNodeSpawner](API\Editor\BlueprintGraph\UBlueprintNodeSpawner) for the specified node class.

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

References

   
Module BlueprintGraph
Header /Engine/Source/Editor/BlueprintGraph/Public/BlueprintNodeSpawner.h
Include #include "BlueprintNodeSpawner.h"
Source /Engine/Source/Editor/BlueprintGraph/Private/BlueprintNodeSpawner.cpp
static [UBlueprintNodeSpawner](API\Editor\BlueprintGraph\UBlueprintNodeSpawner) * Create
(
    [TSubclassOf](API\Runtime\CoreUObject\Templates\TSubclassOf)< [UEdGraphNode](API\Runtime\Engine\EdGraph\UEdGraphNode) > const NodeClass,
    [UObject](API\Runtime\CoreUObject\UObject\UObject) * Outer,
    [FCustomizeNodeDelegate](API\Editor\BlueprintGraph\UBlueprintNodeSpawner\FCustomizeNodeDelegate) PostSpawnDelegate
)

Remarks

Creates a new UBlueprintNodeSpawner for the specified node class. Sets the allocated spawner's NodeClass and CustomizeNodeDelegate fields from the supplied parameters. A newly allocated instance of this class.

Parameters

Name Description
NodeClass The node type that you want the spawner to spawn.
Outer Optional outer for the new spawner (if left null, the transient package will be used).
PostSpawnDelegate A delegate to perform specialized node setup post-spawn.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library