UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IXRLoadingScreen.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
8#include "Engine/Texture.h"
9
10
18{
19public:
20
21 virtual ~IXRLoadingScreen() {}
22
30 {
31 // silence deprecation warnings for generated uses of Texture and LeftTexture
33 FSplashDesc() = default;
34 FSplashDesc(const FSplashDesc&) = default;
36 FSplashDesc& operator=(const FSplashDesc&) = default;
39
40 // Transform of the splash relative to the HMD orientation and location at the time of showing the loading screen.
42 // Size of rendered quad in UE units
44 // UVs of the rendered texture
45 FBox2D UVRect = FBox2D(FVector2D(0.0f, 0.0f), FVector2D(1.0f, 1.0f));
46
47 // Simple animation. Rotation that will be applied to the splash every other frame.
49
50 // If set, the splash texture will be rendered opaque regardless of the alpha channel. Not supported by all platforms.
51 bool bIgnoreAlpha = false;
52
53 // Set to true to tell that the texture is dynamically generated and may update each frame.
54 bool bIsDynamic = false;
55
56 // Set this to true if the assigned texture is an external texture, for instance if using the media framework.
57 bool bIsExternal = false;
58
59 // The texture shown. Can be set to a 2D or a Cube texture. (Cube textures may not be supported by all platforms.)
60 // Implementations of IXRLoadingScreen will prevent GC of these pointers for any stored splashes.
62 UE_DEPRECATED(5.6, "Use TextureObj instead")
64
65 // If set, overrides the texture shown for the left eye. If null, both eyes will show the same texture.
66 // Useful for stereo texture cubes.
67 // Implementations of IXRLoadingScreen will prevent GC of these pointers for any stored splashes.
69 UE_DEPRECATED(5.6, "Use LeftTextureObj instead")
71 };
72
77
84
90
95
99 virtual bool IsShown() const = 0;
100
105
110 UE_DEPRECATED(5.6, "This unused function will be removed. Use IXRLoadingScreen::AddSplash instead")
112};
OODEFFUNC typedef const int const char * function
Definition oodle2.h:710
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define PRAGMA_ENABLE_DEPRECATION_WARNINGS
Definition GenericPlatformCompilerPreSetup.h:12
#define PRAGMA_DISABLE_DEPRECATION_WARNINGS
Definition GenericPlatformCompilerPreSetup.h:8
UE::Math::TVector2< double > FVector2D
Definition MathFwd.h:48
UE::Math::TBox2< double > FBox2D
Definition MathFwd.h:56
uint32 Offset
Definition VulkanMemory.cpp:4033
Definition UnrealType.h:3087
Definition IXRLoadingScreen.h:18
virtual void ShowLoadingScreen()=0
virtual void AddSplash(const FSplashDesc &Splash)=0
virtual bool IsPlayingLoadingMovie() const =0
virtual bool IsShown() const =0
virtual void ClearSplashes()=0
static HEADMOUNTEDDISPLAY_API void ShowLoadingScreen_Compat(bool bShow, FTextureRHIRef Texture, const FVector &Offset, const FVector2D &Scale)
Definition IXRLoadingScreen.cpp:9
virtual ~IXRLoadingScreen()
Definition IXRLoadingScreen.h:21
virtual void HideLoadingScreen()=0
Definition Texture.h:1219
Definition IXRLoadingScreen.h:30
FVector2D QuadSize
Definition IXRLoadingScreen.h:43
TWeakObjectPtr< UTexture > TextureObj
Definition IXRLoadingScreen.h:61
PRAGMA_DISABLE_DEPRECATION_WARNINGS FSplashDesc()=default
bool bIsExternal
Definition IXRLoadingScreen.h:57
FSplashDesc(FSplashDesc &&)=default
FQuat DeltaRotation
Definition IXRLoadingScreen.h:48
bool bIsDynamic
Definition IXRLoadingScreen.h:54
FTextureRHIRef LeftTexture
Definition IXRLoadingScreen.h:70
FTextureRHIRef Texture
Definition IXRLoadingScreen.h:63
PRAGMA_ENABLE_DEPRECATION_WARNINGS FTransform Transform
Definition IXRLoadingScreen.h:41
bool bIgnoreAlpha
Definition IXRLoadingScreen.h:51
FBox2D UVRect
Definition IXRLoadingScreen.h:45
FSplashDesc(const FSplashDesc &)=default
FSplashDesc & operator=(const FSplashDesc &)=default
TWeakObjectPtr< UTexture > LeftTextureObj
Definition IXRLoadingScreen.h:68
FSplashDesc & operator=(FSplashDesc &&)=default
Definition WeakObjectPtrTemplates.h:25
static CORE_API const TQuat< double > Identity
Definition Quat.h:63
static CORE_API const TTransform< double > Identity
Definition TransformNonVectorized.h:58