UBlueprintEditorLibrary::RemoveUnusedVariables

Deletes any unused blueprint created variables the given blueprint.

Choose your operating system:

Windows

macOS

Linux

References

Module

BlueprintEditorLibrary

Header

/Engine/Source/Editor/BlueprintEditorLibrary/Public/BlueprintEditorLibrary.h

Include

#include "BlueprintEditorLibrary.h"

Source

/Engine/Source/Editor/BlueprintEditorLibrary/Private/BlueprintEditorLibrary.cpp

Syntax

static int32 RemoveUnusedVariables
(
    UBlueprint * Blueprint
)

Remarks

Deletes any unused blueprint created variables the given blueprint. An Unused variable is any BP variable that is not referenced in any blueprint graphs

Returns

Number of variables removed

Parameters

Parameter

Description

Blueprint

Blueprint that you would like to remove variables from