UBlueprintVariableNodeSpawner::CreateFromLocal

Creates a new [UBlueprintVariableNodeSpawner](API\Editor\BlueprintGraph\UBlueprintVariableNodeSpawner), charged with spawning a local-variable node (for a variable that belongs to a specific graph).

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

References

   
Module BlueprintGraph
Header /Engine/Source/Editor/BlueprintGraph/Classes/BlueprintVariableNodeSpawner.h
Include #include "BlueprintVariableNodeSpawner.h"
Source /Engine/Source/Editor/BlueprintGraph/Private/BlueprintVariableNodeSpawner.cpp
static [UBlueprintVariableNodeSpawner](API\Editor\BlueprintGraph\UBlueprintVariableNodeSpawner) * CreateFromLocal
(
    [TSubclassOf](API\Runtime\CoreUObject\Templates\TSubclassOf)< [UK2Node_Variable](API\Editor\BlueprintGraph\UK2Node_Variable) > NodeClass,
    [UEdGraph](API\Runtime\Engine\EdGraph\UEdGraph) * VarContext,
    [FBPVariableDescription](API\Runtime\Engine\Engine\FBPVariableDescription) const & VarDesc,
    [FProperty](API\Runtime\CoreUObject\UObject\FProperty) * VarProperty,
    [UObject](API\Runtime\CoreUObject\UObject\UObject) * Outer
)

Remarks

Creates a new UBlueprintVariableNodeSpawner, charged with spawning a local-variable node (for a variable that belongs to a specific graph). A newly allocated instance of this class.

Parameters

Name Description
NodeClass The node type that you want the spawner to spawn.
VarContext The graph that the local variable belongs to.
VarDesc Details the local variable (name, type, etc.)
VarProperty The property that represents the local-variable you want nodes spawned for.
Outer Optional outer for the new spawner (if left null, the transient package will be used).

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library