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

Method GatherPinsConnectedToPin

Source/Flow/Private/FlowAsset.cpp:805–820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

803}
804
805TArray<FConnectedPin> UFlowAsset::GatherPinsConnectedToPin(const FConnectedPin& Pin) const
806{
807 TArray<FConnectedPin> ConnectedPins;
808
809 // Connections are only stored on one of the Nodes they connect depending on pin type.
810 // As such, we need to iterate all Nodes to find all possible Connections for the Pin.
811 for (const auto& GuidNodePair : Nodes)
812 {
813 if (IsValid(GuidNodePair.Value))
814 {
815 ConnectedPins.Append(GuidNodePair.Value->GetKnownConnectionsToPin(Pin));
816 }
817 }
818
819 return ConnectedPins;
820}
821
822TArray<UFlowNode*> UFlowAsset::GetAllNodes() const
823{

Callers

nothing calls this directly

Calls 2

IsValidFunction · 0.85

Tested by

no test coverage detected