Files
UnrealEngineUWP/Engine/Source/Runtime/Overlay/Private/OverlayModule.cpp
Ryan Vance 7c51ff94af Merging //UE4/Dev-Main to Dev-VR (//UE4/Dev-VR)
CL 1 of 8
#rb integration

[CL 4748712 by Ryan Vance in Dev-VR branch]
2019-01-17 18:54:05 -05:00

38 lines
785 B
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "CoreMinimal.h"
#include "Modules/ModuleManager.h"
#include "OverlayPrivate.h"
#include "IOverlayModule.h"
DEFINE_LOG_CATEGORY(LogOverlay);
/**
* Implements the Overlay module
*/
class FOverlayModule
: public IOverlayModule
{
public:
// IModuleInterface interface
virtual void StartupModule() override
{
#if WITH_EDITOR
// Ensure that we always have the overlays factories when loading this module in an editor build
FModuleManager::Get().LoadModule(TEXT("OverlayEditor"));
#endif // WITH_EDITOR
}
virtual void ShutdownModule() override { }
virtual bool SupportsDynamicReloading() override
{
return false;
}
// End IModuleInterface interface
};
IMPLEMENT_MODULE(FOverlayModule, Overlay);