FPreLoadScreenManager

Class that handles storing all registered PreLoadScreens and Playing/Stopping them.

Windows
MacOS
Linux

References

Module

PreLoadScreen

Header

/Engine/Source/Runtime/PreLoadScreen/Public/PreLoadScreenManager.h

Include

#include "PreLoadScreenManager.h"

Syntax

class FPreLoadScreenManager

Remarks

Class that handles storing all registered PreLoadScreens and Playing/Stopping them.

Variables

Name Description

Protected variable

int

 

ActivePreLoadScreenIndex

Protected variable

bool

 

bInitialized

Protected variable

bool

 

bIsEngineLoadingComplete

Protected variable

bool

 

bIsResponsibleForRendering

Protected variable

double

 

LastRenderTickTime

Protected variable

double

 

LastTickTime

Protected variable

TWeakPtr< class...

 

MainWindow

The window that the loading screen resides in

Public variable

FOnPreLoadScree...

 

OnPreLoadScreenManagerCleanUp

Protected variable

float

 

OriginalSlateSleepVariableValue

Protected variable

TArray< TShared...

 

PreLoadScreens

Protected variable

FPreLoadScreenS...

 

SyncMechanism

The threading mechanism with which we handle running slate on another thread

Protected variable

FCriticalSectio...

 

SyncMechanismCriticalSection

Critical section to allow the slate loading thread and the render thread to safely utilize the synchronization mechanism for ticking Slate.

Protected variable

TSharedPtr< cla...

 

VirtualRenderWindow

Virtual window that we render to instead of the main slate window (for thread safety).

Protected variable

TSharedPtr< FPr...

 

WidgetRenderer

Widget renderer used to tick and paint windows in a thread safe way

Constructors

Name Description

Protected function

FPreLoadScreenManager()

Default constructor. We don't want other classes to make these. Should just rely on Get()

Destructors

Name Description

Public function Virtual

~FPreLoadScreenManager()

Functions

Name Description

Public function Static

bool

 

ArePreLoadScreensEnabled()

Protected function

void

 

BeginPlay()

Public function

void

 

CleanUpResources()

Public function Static

void

 

Create()

Public function Static

void

 

Destroy()

Protected function

void

 

EarlyPlayFrameTick()

Separate tick that handles.

Protected function

void

 

EarlyPlayRenderFrameTick()

Public function Static

void

 

EnableRendering

(
    bool bEnabled
)

Protected function

void

 

GameLogicFrameTick()

Public function Static

FPreLoadScre...

 

Get()

Gets the single instance of this settings object. Also creates it if needed.

Protected function

IPreLoadScre...

 

GetActivePreLoadScreen()

Protected function Const

const IPreLo...

 

GetActivePreLoadScreen()

Public function

TSharedPtr< ...

 

GetRenderWindow()

Protected function

void

 

HandleCustomSplashScreenPlay()

Protected function

void

 

HandleEarlyStartupPlay()

Protected function

void

 

HandleEngineLoadingPlay()

Public function Const

bool

 

HasActivePreLoadScreenType

(
    EPreLoadScreenTypes PreLoadScreenTy...
)

Public function Const

bool

 

HasRegisteredPreLoadScreenType

(
    EPreLoadScreenTypes PreLoadScreenTy...
)

Public function Const

bool

 

HasValidActivePreLoadScreen()

Public function

void

 

Initialize

(
    FSlateRenderer& InSlateRenderer
)

Public function Const

bool

 

IsEngineLoadingComplete()

Public function Const

bool

 

IsUsingMainWindow()

Public function Const

void

 

PassPreLoadScreenWindowBackToGame()

Protected function

void

 

PlatformSpecificGameLogicFrameTick()

Public function

void

 

PlayFirstPreLoadScreen

(
    EPreLoadScreenTypes PreLoadScreenTy...
)

Plays the first found PreLoadScreen that matches the bEarlyPreLoadScreen setting passed in.

Public function

void

 

PlayPreLoadScreenAtIndex

(
    int Index
)

Public function

bool

 

PlayPreLoadScreenWithTag

(
    FName InTag
)

Plays the PreLoadScreen with a tag that matches InTag

Public function

void

 

RegisterPreLoadScreen

(
    TSharedPtr< IPreLoadScreen > PreLoa...
)

Public function Virtual

void

 

RenderTick()

Creates a tick on the Render Thread that we run every.

Public function

void

 

SetEngineLoadingComplete

(
    bool IsEngineLoadingFinished
)

Public function Static

bool

 

ShouldRender()

Public function

void

 

StopPreLoadScreen()

Public function

void

 

UnRegisterPreLoadScreen

(
    TSharedPtr< IPreLoadScreen > PreLoa...
)

Public function

void

 

WaitForEngineLoadingScreenToFinish()

Typedefs

Name

Description

FOnPreLoadScreenManagerCleanUp

Callback for handling cleaning up any resources you would like to remove after the PreLoadScreenManager cleans up Not needed for PreLoadScreens as those have a seperate CleanUp method called.

Constants

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss