FModuleManager::UnloadModule

Unloads a specific module NOTE: You can manually unload a module before the normal shutdown occurs with this, but be careful as you may be unloading another module's dependency too early!

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

bool UnloadModule
(
    const FName InModuleName,
    bool bIsShutdown
)

Remarks

Unloads a specific module NOTE: You can manually unload a module before the normal shutdown occurs with this, but be careful as you may be unloading another module's dependency too early!

Returns

true if module was unloaded successfully, false otherwise.

Parameters

Parameter

Description

InModuleName

The name of the module to unload. Should not include path, extension or platform/configuration info. This is just the "module name" part of the module file name.

bIsShutdown

Is this unload module call occurring at shutdown (default = false).

See Also

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