FModuleManager::GetModuleChecked

Gets 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 & GetModuleChecked
(
    const FName ModuleName
)

Remarks

Gets 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.

Returns

The interface to the module.

Parameters

Parameter

Description

ModuleName

The module to get.

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