FModuleManager::LoadModuleChecked

Loads a module by name, checking to ensure it exists.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Modules/ModuleManager.h"

Syntax

template<typename TModuleInterface>
static TModuleInterface & LoadModuleChecked
(
    const FName InModuleName
)

Remarks

Loads a module by name, checking to ensure it exists.

This method checks whether the module actually exists. If the module does not exist, an assertion will be triggered. If the module was already loaded previously, the existing instance will be returned.

Returns

Returns the module interface, casted to the specified typename

Parameters

Parameter

Description

ModuleName

The module to find and load

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