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

Method RemoveUserInput

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

Source from the content-addressed store, hash-verified

367}
368
369void UFlowNode::RemoveUserInput(const FName& PinName)
370{
371 Modify();
372
373 int32 RemovedPinIndex = INDEX_NONE;
374 for (int32 i = 0; i < InputPins.Num(); i++)
375 {
376 if (InputPins[i].PinName == PinName)
377 {
378 InputPins.RemoveAt(i);
379 RemovedPinIndex = i;
380 break;
381 }
382 }
383
384 // update remaining pins
385 if (RemovedPinIndex > INDEX_NONE)
386 {
387 for (int32 i = RemovedPinIndex; i < InputPins.Num(); ++i)
388 {
389 if (InputPins[i].PinName.ToString().IsNumeric())
390 {
391 InputPins[i].PinName = *FString::FromInt(i);
392 }
393 }
394 }
395}
396
397void UFlowNode::RemoveUserOutput(const FName& PinName)
398{

Callers 1

RemoveInstancePinMethod · 0.80

Calls 1

ToStringMethod · 0.80

Tested by

no test coverage detected