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).

Windows
MacOS
Linux

References

Module

BlueprintGraph

Header

/Engine/Source/Editor/BlueprintGraph/Classes/BlueprintVariableNodeSpawner.h

Include

#include "BlueprintVariableNodeSpawner.h"

Source

/Engine/Source/Editor/BlueprintGraph/Private/BlueprintVariableNodeSpawner.cpp

Syntax

static UBlueprintVariableNodeSpawner * CreateFromLocal
(
    TSubclassOf< UK2Node_Variable > NodeClass,
    UEdGraph * VarContext,
    FBPVariableDescription const & VarDesc,
    FProperty * VarProperty,
    UObject * Outer
)

Remarks

Creates a new UBlueprintVariableNodeSpawner, charged with spawning a local-variable node (for a variable that belongs to a specific graph).

Returns

A newly allocated instance of this class.

Parameters

Parameter

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).

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