Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FBlueprintEditorUtils
Description
Adds a local variable to the function graph. It cannot mask a member variable or a variable in any superclass.
| Name | AddLocalVariable |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Kismet2/BlueprintEditorUtils.h |
| Include Path | #include "Kismet2/BlueprintEditorUtils.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Kismet2/BlueprintEditorUtils.cpp |
static bool AddLocalVariable
(
UBlueprint * Blueprint,
UEdGraph * InTargetGraph,
const FName InNewVarName,
const FEdGraphPinType & InNewVarType,
const FString & DefaultValue
)
true if it succeeds, false if it fails.
Parameters
| Name | Remarks |
|---|---|
| NewVarName | Name of the new variable. |
| NewVarType | Type of the new variable. |
| DefaultValue | Default value stored as string |