FBlueprintEditorUtils::AddMemberVariable

Adds a member variable to the blueprint. It cannot mask a variable in any superclass.

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 AddMemberVariable
(
    UBlueprint * Blueprint,
    const FName & NewVarName,
    const FEdGraphPinType & NewVarType,
    const FString & DefaultValue
)

Remarks

Adds a member variable to the blueprint. It cannot mask 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