Files
UnrealEngine/Engine/Source/Runtime/HeadMountedDisplay/Private/IXRLoadingScreen.cpp
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

26 lines
634 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "IXRLoadingScreen.h"
#include "IXRTrackingSystem.h"
#include "EngineGlobals.h"
#include "Engine/Engine.h"
void IXRLoadingScreen::ShowLoadingScreen_Compat(bool bShow, FTextureRHIRef Texture, const FVector& Offset, const FVector2D& Scale)
{
// Backwards compatibility with IStereoLayers::ShowSplashScreen
IXRLoadingScreen* LoadingScreen = GEngine && GEngine->XRSystem.IsValid()? GEngine->XRSystem->GetLoadingScreen() : nullptr;
if (LoadingScreen)
{
if (bShow)
{
LoadingScreen->ShowLoadingScreen();
}
else
{
LoadingScreen->HideLoadingScreen();
}
}
}