FBlueprintEditorUtils::AddLocalVariable

Adds a local variable to the function graph.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/Kismet2/BlueprintEditorUtils.h

Include

#include "Kismet2/BlueprintEditorUtils.h"

Source

/Engine/Source/Editor/UnrealEd/Private/Kismet2/BlueprintEditorUtils.cpp

Syntax

static bool AddLocalVariable
(
    UBlueprint * Blueprint,
    UEdGraph * InTargetGraph,
    const FName InNewVarName,
    const FEdGraphPinType & InNewVarType,
    const FString & DefaultValue
)

Remarks

Adds a local variable to the function graph. It cannot mask a member variable or a variable in any superclass.

Returns

true if it succeeds, false if it fails.

Parameters

Parameter

Description

NewVarName

Name of the new variable.

NewVarType

Type of the new variable.

DefaultValue

Default value stored as string

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