FModuleManager::UnloadModulesAtShutdown

Unloads modules during the shutdown process.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Modules/ModuleManager.h

Include

#include "Modules/ModuleManager.h"

Source

/Engine/Source/Runtime/Core/Private/Modules/ModuleManager.cpp

Syntax

void UnloadModulesAtShutdown()

Remarks

Unloads modules during the shutdown process. Modules are unloaded in reverse order to when their StartupModule() FINISHES. The practical implication of this is that if module A depends on another module B, and A loads B during A's StartupModule, that B will actually get Unloaded after A during shutdown. This allows A's ShutdownModule() call to still reference module B. You can manually unload a module yourself which will change this ordering, but be careful as you may be unloading another module's dependency!

This method is Usually called at various points while exiting an application.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss