| 928 | } |
| 929 | |
| 930 | void 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 | |
| 955 | void UFlowAsset::PreStartFlow() |
| 956 | { |
nothing calls this directly
no test coverage detected