UEdGraphNode::GetPinIndex

Gets the index for a pin