52 for (UEdGraphPin* Pin : Pins)
54 TArray<UEdGraphPin*>& LinkedToRef = Pin->LinkedTo;
55 for (UEdGraphPin* OtherPin : LinkedToRef)
58 if (!OtherPin->GetOwningNode()->Pins.Contains(OtherPin))
60 Pin->LinkedTo.Remove(OtherPin);
70 TArray<UEdGraphPin*> OldPins(Pins);
83 NewInputPin->CopyPersistentDataFromOldPin(*OldInputPin);
84 OldInputPin =
nullptr;
89 NewOutputPin->CopyPersistentDataFromOldPin(*OldOutputPin);
90 OldOutputPin =
nullptr;
94 for (UEdGraphPin* OldPin : OldPins)
97 OldPin->BreakAllPinLinks();