MCPcopy Create free account
hub / github.com/MothCocoon/FlowGraph / RemoveUserOutput

Method RemoveUserOutput

Source/Flow/Private/Nodes/FlowNode.cpp:397–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397void UFlowNode::RemoveUserOutput(const FName& PinName)
398{
399 Modify();
400
401 int32 RemovedPinIndex = INDEX_NONE;
402 for (int32 i = 0; i < OutputPins.Num(); i++)
403 {
404 if (OutputPins[i].PinName == PinName)
405 {
406 OutputPins.RemoveAt(i);
407 RemovedPinIndex = i;
408 break;
409 }
410 }
411
412 // update remaining pins
413 if (RemovedPinIndex > INDEX_NONE)
414 {
415 for (int32 i = RemovedPinIndex; i < OutputPins.Num(); ++i)
416 {
417 if (OutputPins[i].PinName.ToString().IsNumeric())
418 {
419 OutputPins[i].PinName = *FString::FromInt(i);
420 }
421 }
422 }
423}
424
425bool UFlowNode::TryUpdateAutoDataPins()
426{

Callers 1

RemoveInstancePinMethod · 0.80

Calls 1

ToStringMethod · 0.80

Tested by

no test coverage detected