FBlueprintEditorUtils::DuplicateVariable

Duplicates a variable given its name and Blueprint

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 FName DuplicateVariable
(
    UBlueprint * InBlueprint,
    const UStruct * InScope,
    FName InVariableToDuplicate
)

Remarks

Duplicates a variable given its name and Blueprint

Returns

Returns the name of the new variable or NAME_None if failed to duplicate

Parameters

Parameter

Description

InBlueprint

The Blueprint the variable can be found in Local variable's scope

InVariableToDuplicate

Variable name to be found and duplicated

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