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

#include <UObjectThreadContext.h>

+ Inheritance diagram for FUObjectThreadContext:

Public Member Functions

void PopInitializer ()
 
void PushInitializer (FObjectInitializer *Initializer)
 
FObjectInitializerTopInitializer ()
 
FObjectInitializerTopInitializerChecked ()
 
FUObjectSerializeContextGetSerializeContext ()
 
- Public Member Functions inherited from FTlsAutoCleanup
virtual ~FTlsAutoCleanup ()
 
CORE_API void Register ()
 

Public Attributes

bool IsRoutingPostLoad
 
bool IsDeletingLinkers
 
int32 SyncLoadUsingAsyncLoaderCount
 
int32 IsInConstructor
 
UObjectConstructedObject
 
UObjectCurrentlyPostLoadedObjectByALT
 
voidAsyncPackage
 
IAsyncPackageLoaderAsyncPackageLoader
 
EInternalObjectFlags AsyncVisibilityFilter = EInternalObjectFlags::None
 
TArray< UObject *, TInlineAllocator< 16 > > PostInitPropertiesCheck
 
TArray< UObject *, TInlineAllocator< 16 > > DebugPostLoad
 

Additional Inherited Members

- Static Public Member Functions inherited from TThreadSingleton< FUObjectThreadContext >
static FORCEINLINE FUObjectThreadContextGet ()
 
static FORCEINLINE FUObjectThreadContextGet (TFunctionRef< FTlsAutoCleanup *()> CreateInstance)
 
static FORCEINLINE FUObjectThreadContextTryGet ()
 
static FORCEINLINE FUObjectThreadContextInject (FUObjectThreadContext *Instance)
 
- Protected Member Functions inherited from TThreadSingleton< FUObjectThreadContext >
 TThreadSingleton ()
 
virtual ~TThreadSingleton ()
 
- Static Protected Member Functions inherited from TThreadSingleton< FUObjectThreadContext >
static FTlsAutoCleanupCreateInstance ()
 
- Protected Attributes inherited from TThreadSingleton< FUObjectThreadContext >
const uint32 ThreadId
 

Member Function Documentation

◆ GetSerializeContext()

FUObjectSerializeContext * FUObjectThreadContext::GetSerializeContext ( )
inline

Gets the current serialization context

◆ PopInitializer()

void FUObjectThreadContext::PopInitializer ( )
inline

Remove top element from the stack.

◆ PushInitializer()

void FUObjectThreadContext::PushInitializer ( FObjectInitializer Initializer)
inline

Push new FObjectInitializer on stack.

Parameters
InitializerObject initializer to push.

◆ TopInitializer()

FObjectInitializer * FUObjectThreadContext::TopInitializer ( )
inline

Retrieve current FObjectInitializer for current thread.

Returns
Current FObjectInitializer.

◆ TopInitializerChecked()

FObjectInitializer & FUObjectThreadContext::TopInitializerChecked ( )
inline

Retrieves current FObjectInitializer for current thread. Will assert of no ObjectInitializer is currently set.

Returns
Current FObjectInitializer reference.

Member Data Documentation

◆ AsyncPackage

void* FUObjectThreadContext::AsyncPackage

Async Package currently processing objects

◆ AsyncPackageLoader

IAsyncPackageLoader* FUObjectThreadContext::AsyncPackageLoader

Async package loader currently processing objects

◆ AsyncVisibilityFilter

EInternalObjectFlags FUObjectThreadContext::AsyncVisibilityFilter = EInternalObjectFlags::None

Async loading visibility filter

◆ ConstructedObject

UObject* FUObjectThreadContext::ConstructedObject

◆ CurrentlyPostLoadedObjectByALT

UObject* FUObjectThreadContext::CurrentlyPostLoadedObjectByALT

The object we are routing PostLoad from the Async Loading code for

◆ DebugPostLoad

TArray<UObject*, TInlineAllocator<16> > FUObjectThreadContext::DebugPostLoad

Used to verify that the Super::PostLoad chain is intact.

◆ IsDeletingLinkers

bool FUObjectThreadContext::IsDeletingLinkers

true when FLinkerManager deletes linkers

◆ IsInConstructor

int32 FUObjectThreadContext::IsInConstructor

◆ IsRoutingPostLoad

bool FUObjectThreadContext::IsRoutingPostLoad

true when we are routing ConditionalPostLoad/PostLoad to objects

Examples
/work/Engine/Source/Runtime/UMG/Public/Components/Widget.h.

◆ PostInitPropertiesCheck

TArray<UObject*, TInlineAllocator<16> > FUObjectThreadContext::PostInitPropertiesCheck

Stack to ensure that PostInitProperties is routed through Super:: calls.

◆ SyncLoadUsingAsyncLoaderCount

int32 FUObjectThreadContext::SyncLoadUsingAsyncLoaderCount

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