| 782 | } |
| 783 | |
| 784 | TArray<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 | |
| 805 | TArray<FConnectedPin> UFlowAsset::GatherPinsConnectedToPin(const FConnectedPin& Pin) const |
| 806 | { |
nothing calls this directly
no test coverage detected