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

Method RecursiveFindNodesByClass

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

Source from the content-addressed store, hash-verified

941}
942
943void 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
966void UFlowNode::TriggerPreload()
967{

Callers

nothing calls this directly

Calls 1

GatherConnectedNodesMethod · 0.80

Tested by

no test coverage detected