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

Method DeinitializeInstance

Source/Flow/Private/FlowAsset.cpp:930–953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

928}
929
930void UFlowAsset::DeinitializeInstance()
931{
932 // These should have been flushed in FinishFlow()
933 check(DeferredTransitionScopes.IsEmpty());
934
935 if (IsInstanceInitialized())
936 {
937 for (const TPair<FGuid, UFlowNode*>& Node : ObjectPtrDecay(Nodes))
938 {
939 if (IsValid(Node.Value))
940 {
941 Node.Value->DeinitializeInstance();
942 }
943 }
944
945 const int32 ActiveInstancesLeft = TemplateAsset->RemoveInstance(this);
946 if (ActiveInstancesLeft == 0 && GetFlowSubsystem())
947 {
948 GetFlowSubsystem()->RemoveInstancedTemplate(TemplateAsset);
949 }
950
951 TemplateAsset = nullptr;
952 }
953}
954
955void UFlowAsset::PreStartFlow()
956{

Callers

nothing calls this directly

Calls 5

IsInstanceInitializedFunction · 0.85
IsValidFunction · 0.85
IsEmptyMethod · 0.80
RemoveInstanceMethod · 0.80

Tested by

no test coverage detected