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

Method GatherNodesConnectedToAllInputs

Source/Flow/Private/FlowAsset.cpp:784–803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

782}
783
784TArray<UFlowNode*> UFlowAsset::GatherNodesConnectedToAllInputs() const
785{
786 TSet<TObjectKey<UFlowNode>> IteratedNodes;
787 TArray<UFlowNode*> ConnectedNodes;
788
789 // Nodes connected to the Start node
790 UFlowNode* DefaultEntryNode = GetDefaultEntryNode();
791 GetNodesInExecutionOrder_Recursive(DefaultEntryNode, IteratedNodes, ConnectedNodes);
792
793 // Nodes connected to Custom Input node(s)
794 for (const TPair<FGuid, UFlowNode*>& Node : ObjectPtrDecay(Nodes))
795 {
796 if (UFlowNode_CustomInput* CustomInput = Cast<UFlowNode_CustomInput>(Node.Value))
797 {
798 GetNodesInExecutionOrder_Recursive(CustomInput, IteratedNodes, ConnectedNodes);
799 }
800 }
801
802 return ConnectedNodes;
803}
804
805TArray<FConnectedPin> UFlowAsset::GatherPinsConnectedToPin(const FConnectedPin& Pin) const
806{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected