44 UK2Node_Switch* SwitchNode = CastChecked<UK2Node_Switch>(GraphNode);
45 UEdGraphPin* DefaultPin = SwitchNode->GetDefaultPin();
48 for (UEdGraphPin* CurrentPin : GraphNode->Pins)
50 if (!CurrentPin->bHidden && CurrentPin != DefaultPin)
52 TSharedPtr<SGraphPin> NewPin = FNodeFactory::CreatePinWidget(CurrentPin);
53 check(NewPin.IsValid());
54 AddPin(NewPin.ToSharedRef());
59 if (DefaultPin !=
nullptr)
62 RightNodeBox->AddSlot()
65 .VAlign(VAlign_Center)
69 .Image(FEditorStyle::GetBrush(
"Graph.Pin.DefaultPinSeparator"))
74 AddPin(NewPin.ToSharedRef());