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

Method RemoveSubFlow

Source/Flow/Private/FlowSubsystem.cpp:201–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201void UFlowSubsystem::RemoveSubFlow(UFlowNode_SubGraph* SubGraphNode, const EFlowFinishPolicy FinishPolicy)
202{
203 if (InstancedSubFlows.Contains(SubGraphNode))
204 {
205 UFlowAsset* AssetInstance = InstancedSubFlows[SubGraphNode];
206
207 SubGraphNode->GetFlowAsset()->ActiveSubGraphs.Remove(SubGraphNode);
208 InstancedSubFlows.Remove(SubGraphNode);
209
210 AssetInstance->FinishFlow(FinishPolicy);
211
212 // Make sure to set the NodeOwningThisAssetInstance after the FinishFlow call, as it may be needed in the FinishFlow method
213 AssetInstance->NodeOwningThisAssetInstance = nullptr;
214 }
215}
216
217UFlowAsset* UFlowSubsystem::CreateFlowInstance(const TWeakObjectPtr<UObject> Owner, UFlowAsset* LoadedFlowAsset, FString NewInstanceName)
218{

Callers 2

FlushContentMethod · 0.80
CleanupMethod · 0.80

Calls 2

FinishFlowMethod · 0.80
GetFlowAssetMethod · 0.45

Tested by

no test coverage detected