UEdGraphSchema_K2::ReplaceOldNodeWithNew

Moves all connections from the old node to the new one.

Windows
MacOS
Linux

References

Module

BlueprintGraph

Header

/Engine/Source/Editor/BlueprintGraph/Classes/EdGraphSchema_K2.h

Include

#include "EdGraphSchema_K2.h"

Source

/Engine/Source/Editor/BlueprintGraph/Private/EdGraphSchema_K2.cpp

Syntax

bool ReplaceOldNodeWithNew
(
    UK2Node * OldNode,
    UK2Node * NewNode,
    const TMap< FName, FName > & OldPinToNewPinMap
) const

Remarks

Moves all connections from the old node to the new one. Returns true and destroys OldNode on success. Fails if it cannot find a mapping from an old pin.

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