UBlueprintEditorLibrary::ReplaceVariableReferences

Replace any references of variables with the OldVarName to references of those with the NewVarName if possible

Unreal Engine C++ API Reference > Editor > BlueprintEditorLibrary > UBlueprintEditorLibrary

References

   
Module BlueprintEditorLibrary
Header /Engine/Source/Editor/BlueprintEditorLibrary/Public/BlueprintEditorLibrary.h
Include #include "BlueprintEditorLibrary.h"
Source /Engine/Source/Editor/BlueprintEditorLibrary/Private/BlueprintEditorLibrary.cpp
static void ReplaceVariableReferences
(
    [UBlueprint](API\Runtime\Engine\Engine\UBlueprint) * Blueprint,
    const [FName](API\Runtime\Core\UObject\FName) OldVarName,
    const [FName](API\Runtime\Core\UObject\FName) NewVarName
)

Remarks

Replace any references of variables with the OldVarName to references of those with the NewVarName if possible

Parameters

Name Description
Blueprint Blueprint to replace the variable references on
OldVarName The variable you want replaced
NewVarName The new variable that will be used in the old one's place

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library