UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FPreLoadScreenSlateThreadTask Class Reference

#include <PreLoadSlateThreading.h>

+ Inheritance diagram for FPreLoadScreenSlateThreadTask:

Public Member Functions

 FPreLoadScreenSlateThreadTask (class FPreLoadScreenSlateSynchMechanism &InSyncMechanism)
 
virtual bool Init () override
 
virtual uint32 Run () override
 
virtual void Exit () override
 
- Public Member Functions inherited from FRunnable
virtual void Stop ()
 
virtual class FSingleThreadRunnableGetSingleThreadInterface ()
 
virtual ~FRunnable ()
 

Detailed Description

The Slate thread is simply run on a worker thread. Slate is run on another thread because the game thread (where Slate is usually run) is blocked loading things. Slate is very modular, which makes it very easy to run on another thread with no adverse effects. It does not enqueue render commands, because the RHI is not thread safe. Thus, it waits to enqueue render commands until the render thread tickables ticks, and then it calls them there.

Constructor & Destructor Documentation

◆ FPreLoadScreenSlateThreadTask()

FPreLoadScreenSlateThreadTask::FPreLoadScreenSlateThreadTask ( class FPreLoadScreenSlateSynchMechanism InSyncMechanism)
inline

Member Function Documentation

◆ Exit()

void FPreLoadScreenSlateThreadTask::Exit ( void  )
overridevirtual

Exits the runnable object.

Called in the context of the aggregating thread to perform any cleanup.

See also
Init, Run, Stop

Reimplemented from FRunnable.

◆ Init()

bool FPreLoadScreenSlateThreadTask::Init ( void  )
overridevirtual

Initializes the runnable object.

This method is called in the context of the thread object that aggregates this, not the thread that passes this runnable to a new thread.

Returns
True if initialization was successful, false otherwise
See also
Run, Stop, Exit

Reimplemented from FRunnable.

◆ Run()

uint32 FPreLoadScreenSlateThreadTask::Run ( )
overridevirtual

Runs the runnable object.

This is where all per object thread work is done. This is only called if the initialization was successful.

Returns
The exit code of the runnable object
See also
Init, Stop, Exit

Implements FRunnable.


The documentation for this class was generated from the following files: