RealtimeStyleTransferRuntime/Source/LyraGame/UI/Foundation/LyraLoadingScreenSubsystem.cpp

26 lines
694 B
C++
Raw Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
#include "LyraLoadingScreenSubsystem.h"
//////////////////////////////////////////////////////////////////////
// ULyraLoadingScreenSubsystem
ULyraLoadingScreenSubsystem::ULyraLoadingScreenSubsystem()
{
}
void ULyraLoadingScreenSubsystem::SetLoadingScreenContentWidget(TSubclassOf<UUserWidget> NewWidgetClass)
{
if (LoadingScreenWidgetClass != NewWidgetClass)
{
LoadingScreenWidgetClass = NewWidgetClass;
OnLoadingScreenWidgetChanged.Broadcast(LoadingScreenWidgetClass);
}
}
TSubclassOf<UUserWidget> ULyraLoadingScreenSubsystem::GetLoadingScreenContentWidget() const
{
return LoadingScreenWidgetClass;
}