UEdGraphSchema_K2::ReplaceOldNodeWithNew

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

Unreal Engine C++ API Reference > Editor > BlueprintGraph > UEdGraphSchema_K2

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
bool ReplaceOldNodeWithNew
(
    [UEdGraphNode](API\Runtime\Engine\EdGraph\UEdGraphNode) * OldNode,
    [UEdGraphNode](API\Runtime\Engine\EdGraph\UEdGraphNode) * NewNode,
    const [TMap](API\Runtime\Core\Containers\TMap)< [FName](API\Runtime\Core\UObject\FName), [FName](API\Runtime\Core\UObject\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.


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library