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

Method ShutdownModule

Source/FlowEditor/Private/FlowEditorModule.cpp:116–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void FFlowEditorModule::ShutdownModule()
117{
118 FFlowEditorStyle::Shutdown();
119
120 UnregisterDetailCustomizations();
121
122 UnregisterAssets();
123
124 // unregister track editors
125 ISequencerModule& SequencerModule = FModuleManager::Get().LoadModuleChecked<ISequencerModule>("Sequencer");
126 SequencerModule.UnRegisterTrackEditor(FlowTrackCreateEditorHandle);
127
128 FModuleManager::Get().OnModulesChanged().Remove(ModulesChangedHandle);
129
130 if (bIsRegisteredForAssetChanges && FModuleManager::Get().IsModuleLoaded("AssetRegistry"))
131 {
132 // Unregister asset change detection
133 FAssetRegistryModule& AssetRegistry = FModuleManager::Get().GetModuleChecked<FAssetRegistryModule>("AssetRegistry");
134
135 AssetRegistry.Get().OnAssetUpdated().RemoveAll(this);
136 AssetRegistry.Get().OnAssetRenamed().RemoveAll(this);
137 AssetRegistry.Get().OnAssetRemoved().RemoveAll(this);
138
139 bIsRegisteredForAssetChanges = false;
140 }
141}
142
143void FFlowEditorModule::TrySetFlowNodeDisplayStyleDefaults() const
144{

Callers

nothing calls this directly

Calls 5

OnAssetUpdatedMethod · 0.80
GetMethod · 0.80
OnAssetRemovedMethod · 0.80
GetFunction · 0.50
OnAssetRenamedMethod · 0.45

Tested by

no test coverage detected