| 941 | } |
| 942 | |
| 943 | void UFlowNode::RecursiveFindNodesByClass(UFlowNode* Node, const TSubclassOf<UFlowNode> Class, uint8 Depth, TArray<UFlowNode*>& OutNodes) |
| 944 | { |
| 945 | if (Node) |
| 946 | { |
| 947 | // Record the node if it is the desired type |
| 948 | if (Node->GetClass() == Class) |
| 949 | { |
| 950 | OutNodes.AddUnique(Node); |
| 951 | } |
| 952 | |
| 953 | if (OutNodes.Num() == Depth) |
| 954 | { |
| 955 | return; |
| 956 | } |
| 957 | |
| 958 | // Recurse |
| 959 | for (UFlowNode* ConnectedNode : Node->GatherConnectedNodes()) |
| 960 | { |
| 961 | RecursiveFindNodesByClass(ConnectedNode, Class, Depth, OutNodes); |
| 962 | } |
| 963 | } |
| 964 | } |
| 965 | |
| 966 | void UFlowNode::TriggerPreload() |
| 967 | { |
nothing calls this directly
no test coverage detected