Navigation
API > API/Plugins > API/Plugins/OptimusCore > API/Plugins/OptimusCore/IOptimusNodePinRouter
Description
Given a pin on this node, which can be a terminal node (entry/return), or a subgraph/ function reference node, return the pin matching it on the other side. E.g. if given an input pin on a terminal return node, return the output pin on the reference node in the graph above. If the pin isn't owned by this node, then a nullptr is returned.
| Name | GetPinCounterpart |
| Type | function |
| Header File | /Engine/Plugins/Animation/DeformerGraph/Source/OptimusCore/Public/IOptimusNodePinRouter.h |
| Include Path | #include "IOptimusNodePinRouter.h" |
FOptimusRoutedNodePin GetPinCounterpart
(
UOptimusNodePin * InNodePin,
const FOptimusPinTraversalContext & InTraversalContext
) const
The counterpart pin. If the pin given was invalid and has no counterpart, the NodePin value will be a nullptr and the traversal context undefined.
Parameters
| Name | Remarks |
|---|---|
| InNodePin | The pin to find the counterpart for. |
| InTraversalContext | The context for the routing. This is used by the router to where it is in the traversal when traversing function references, to understand which node is the exit node. If a pin from a reference node is used to enter the function sub-graph the sub-graph reference router node is added to the context. If the pin is used to leave the sub-graph to go up, the last node in the array is used as the exit node. |