Navigation
API > API/Plugins > API/Plugins/CustomizableObjectEditor > API/Plugins/CustomizableObjectEditor/UCustomizableObjectNodeRemapPins
Description
Remap existing connections from old pins to new pins.
Use MovePersistentDataFromOldPin from this file to copy the links from the old node to the new node.
| Name | RemapPins |
| Type | function |
| Header File | /Engine/Plugins/Mutable/Source/CustomizableObjectEditor/Public/MuCOE/RemapPins/CustomizableObjectNodeRemapPins.h |
| Include Path | #include "MuCOE/RemapPins/CustomizableObjectNodeRemapPins.h" |
virtual void RemapPins
(
const UCustomizableObjectNode & Node,
const TArray < UEdGraphPin * > & OldPins,
const TArray < UEdGraphPin * > & NewPins,
TMap < UEdGraphPin *, UEdGraphPin * > & PinsToRemap,
TArray < UEdGraphPin * > & PinsToOrphan
)
Parameters
| Name | Remarks |
|---|---|
| OldPins | Old pins which are no longer present in the node. |
| NewPins | Current node pins. |
| PinsToRemap | Out parameter. Remapping pairs. Key is the old pin while value is the new pin. From pin has to be a pin from the NewPins, while FromPin has to be a pin from OldPins. |
| PinsToOrphan | Out Parameter. List of pins which will be marked as orphaned. Only pins from OldPins must be added. |