RealtimeStyleTransferRuntime/Plugins/CommonLoadingScreen/Source/CommonStartupLoadingScreen/Private/CommonPreLoadScreen.cpp

21 lines
468 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "CommonPreLoadScreen.h"
#include "CoreGlobals.h"
#include "Misc/App.h"
#include "SCommonPreLoadingScreenWidget.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#define LOCTEXT_NAMESPACE "CommonPreLoadingScreen"
void FCommonPreLoadScreen::Init()
{
if (!GIsEditor && FApp::CanEverRender())
{
EngineLoadingWidget = SNew(SCommonPreLoadingScreenWidget);
}
}
#undef LOCTEXT_NAMESPACE