UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FCoreUObjectDelegates Struct Reference

#include <UObjectGlobals.h>

Public Member Functions

 DECLARE_MULTICAST_DELEGATE_ThreeParams (FOnPostInitSparseClassData, UClass *, UScriptStruct *, void *)
 
 DECLARE_MULTICAST_DELEGATE_TwoParams (FOnPackageReloaded, EPackageReloadPhase, FPackageReloadedEvent *)
 
 DECLARE_DELEGATE_OneParam (FNetworkFileRequestPackageReload, const TArray< FString > &)
 
 DECLARE_DELEGATE_RetVal_ThreeParams (bool, FIsPackageOKToSaveDelegate, UPackage *, const FString &, FOutputDevice *)
 
 DECLARE_MULTICAST_DELEGATE_OneParam (FReloadAddedClassesDelegate, const TArray< UClass * > &)
 
 DECLARE_MULTICAST_DELEGATE (FReloadReinstancingCompleteDelegate)
 
 DECLARE_MULTICAST_DELEGATE_OneParam (FReloadCompleteDelegate, EReloadCompleteReason)
 
 DECLARE_MULTICAST_DELEGATE_TwoParams (FCompiledInUObjectsRegisteredDelegate, FName, ECompiledInUObjectsRegisteredStatus Status)
 
 DECLARE_MULTICAST_DELEGATE_OneParam (FCompiledInUObjectsRemovedDelegate, TConstArrayView< UPackage * >)
 
 DECLARE_MULTICAST_DELEGATE_OneParam (FPreLoadMapDelegate, const FString &)
 
 DECLARE_MULTICAST_DELEGATE_TwoParams (FPreLoadMapWithContextDelegate, const FWorldContext &, const FString &)
 
 DECLARE_MULTICAST_DELEGATE_OneParam (FPostLoadMapDelegate, UWorld *)
 
 DECLARE_MULTICAST_DELEGATE_ThreeParams (FTraceExternalRootsForReachabilityAnalysisDelegate, FGarbageCollectionTracer &, EObjectFlags, bool)
 
 DECLARE_MULTICAST_DELEGATE_OneParam (FOnReportGarbageReferencers, TConstArrayView< struct FGarbageReferenceInfo >)
 
 DECLARE_DELEGATE_RetVal_OneParam (bool, FOnLoadObjectsOnTop, const FString &)
 
 DECLARE_MULTICAST_DELEGATE_OneParam (FPackageCreatedForLoad, class UPackage *)
 
 DECLARE_DELEGATE_RetVal_OneParam (FPrimaryAssetId, FGetPrimaryAssetIdForObject, const UObject *)
 
 DECLARE_DELEGATE_RetVal_TwoParams (bool, FShouldCookPackageForPlatform, const UPackage *, const ITargetPlatform *)
 

Static Public Member Functions

static COREUOBJECT_API FSimpleMulticastDelegateGetPreGarbageCollectDelegate ()
 
static COREUOBJECT_API FSimpleMulticastDelegateGetGarbageCollectStartedDelegate ()
 
static COREUOBJECT_API FSimpleMulticastDelegateGetPostGarbageCollect ()
 
static COREUOBJECT_API FSimpleMulticastDelegateGetPostPurgeGarbageDelegate ()
 
static COREUOBJECT_API FOnReportGarbageReferencersGetGarbageCollectReportGarbageReferencers ()
 

Static Public Attributes

static COREUOBJECT_API FOnPostInitSparseClassData OnPostInitSparseClassData
 
static COREUOBJECT_API FOnPackageReloaded OnPackageReloaded
 
static COREUOBJECT_API FNetworkFileRequestPackageReload NetworkFileRequestPackageReload
 
static COREUOBJECT_API FIsPackageOKToSaveDelegate IsPackageOKToSaveDelegate
 
static COREUOBJECT_API FReloadAddedClassesDelegate ReloadAddedClassesDelegate
 
static COREUOBJECT_API FReloadReinstancingCompleteDelegate ReloadReinstancingCompleteDelegate
 
static COREUOBJECT_API FReloadCompleteDelegate ReloadCompleteDelegate
 
static COREUOBJECT_API TMulticastDelegate< void(UClass *OldClass, UClass *NewClass, EHotReloadedClassFlags Flags)> RegisterClassForHotReloadReinstancingDelegate
 
static COREUOBJECT_API TMulticastDelegate< void()> ReinstanceHotReloadedClassesDelegate
 
static COREUOBJECT_API FCompiledInUObjectsRegisteredDelegate CompiledInUObjectsRegisteredDelegate
 
static COREUOBJECT_API FCompiledInUObjectsRemovedDelegate CompiledInUObjectsRemovedDelegate
 
static COREUOBJECT_API FPreLoadMapDelegate PreLoadMap
 
static COREUOBJECT_API FPreLoadMapWithContextDelegate PreLoadMapWithContext
 
static COREUOBJECT_API FPostLoadMapDelegate PostLoadMapWithWorld
 
static COREUOBJECT_API FSimpleMulticastDelegate PostDemoPlay
 
static COREUOBJECT_API FSimpleMulticastDelegate PostReachabilityAnalysis
 
static COREUOBJECT_API FSimpleMulticastDelegate PreGarbageCollectConditionalBeginDestroy
 
static COREUOBJECT_API FSimpleMulticastDelegate PostGarbageCollectConditionalBeginDestroy
 
static COREUOBJECT_API FSimpleMulticastDelegate GarbageCollectComplete
 
static COREUOBJECT_API FOnLoadObjectsOnTop ShouldLoadOnTop
 
static COREUOBJECT_API FPackageCreatedForLoad PackageCreatedForLoad
 
static COREUOBJECT_API FGetPrimaryAssetIdForObject GetPrimaryAssetIdForObject
 
static COREUOBJECT_API FShouldCookPackageForPlatform ShouldCookPackageForPlatform
 

Detailed Description

Global CoreUObject delegates

Member Function Documentation

◆ DECLARE_DELEGATE_OneParam()

FCoreUObjectDelegates::DECLARE_DELEGATE_OneParam ( FNetworkFileRequestPackageReload  ,
const TArray< FString > &   
)

Called when a package reload request is received from a network file server

◆ DECLARE_DELEGATE_RetVal_OneParam() [1/2]

FCoreUObjectDelegates::DECLARE_DELEGATE_RetVal_OneParam ( bool  ,
FOnLoadObjectsOnTop  ,
const FString &   
)

Queries whether an object should be loaded on top ( replace ) an already existing one

◆ DECLARE_DELEGATE_RetVal_OneParam() [2/2]

FCoreUObjectDelegates::DECLARE_DELEGATE_RetVal_OneParam ( FPrimaryAssetId  ,
FGetPrimaryAssetIdForObject  ,
const UObject  
)

Called when trying to figure out if a UObject is a primary asset, if it doesn't implement GetPrimaryAssetId itself

◆ DECLARE_DELEGATE_RetVal_ThreeParams()

FCoreUObjectDelegates::DECLARE_DELEGATE_RetVal_ThreeParams ( bool  ,
FIsPackageOKToSaveDelegate  ,
UPackage ,
const FString &  ,
FOutputDevice  
)

Delegate used by SavePackage() to check whether a package should be saved

◆ DECLARE_DELEGATE_RetVal_TwoParams()

FCoreUObjectDelegates::DECLARE_DELEGATE_RetVal_TwoParams ( bool  ,
FShouldCookPackageForPlatform  ,
const UPackage ,
const ITargetPlatform  
)

Called during cooking to see if a specific package should be cooked for a given target platform

◆ DECLARE_MULTICAST_DELEGATE()

FCoreUObjectDelegates::DECLARE_MULTICAST_DELEGATE ( FReloadReinstancingCompleteDelegate  )

Delegate for reload re-instancing complete

◆ DECLARE_MULTICAST_DELEGATE_OneParam() [1/7]

FCoreUObjectDelegates::DECLARE_MULTICAST_DELEGATE_OneParam ( FCompiledInUObjectsRemovedDelegate  ,
TConstArrayView< UPackage * >   
)

◆ DECLARE_MULTICAST_DELEGATE_OneParam() [2/7]

FCoreUObjectDelegates::DECLARE_MULTICAST_DELEGATE_OneParam ( FOnReportGarbageReferencers  ,
TConstArrayView< struct FGarbageReferenceInfo  
)

Called when garbage collection detects references to objects that are marked for explicit destruction by MarkAsGarbage

◆ DECLARE_MULTICAST_DELEGATE_OneParam() [3/7]

FCoreUObjectDelegates::DECLARE_MULTICAST_DELEGATE_OneParam ( FPackageCreatedForLoad  ,
class UPackage  
)

Called when path to world root is changed

◆ DECLARE_MULTICAST_DELEGATE_OneParam() [4/7]

FCoreUObjectDelegates::DECLARE_MULTICAST_DELEGATE_OneParam ( FPostLoadMapDelegate  ,
UWorld  
)

Sent at the end of LoadMap

◆ DECLARE_MULTICAST_DELEGATE_OneParam() [5/7]

FCoreUObjectDelegates::DECLARE_MULTICAST_DELEGATE_OneParam ( FPreLoadMapDelegate  ,
const FString &   
)

Sent at the very beginning of LoadMap

◆ DECLARE_MULTICAST_DELEGATE_OneParam() [6/7]

FCoreUObjectDelegates::DECLARE_MULTICAST_DELEGATE_OneParam ( FReloadAddedClassesDelegate  ,
const TArray< UClass * > &   
)

Delegate for reloaded classes that have been added.

◆ DECLARE_MULTICAST_DELEGATE_OneParam() [7/7]

FCoreUObjectDelegates::DECLARE_MULTICAST_DELEGATE_OneParam ( FReloadCompleteDelegate  ,
EReloadCompleteReason   
)

Delegate for reload re-instancing complete

◆ DECLARE_MULTICAST_DELEGATE_ThreeParams() [1/2]

FCoreUObjectDelegates::DECLARE_MULTICAST_DELEGATE_ThreeParams ( FOnPostInitSparseClassData  ,
UClass ,
UScriptStruct ,
void  
)

Called when new sparse class data has been created (and the base data initialized) for the given class

◆ DECLARE_MULTICAST_DELEGATE_ThreeParams() [2/2]

FCoreUObjectDelegates::DECLARE_MULTICAST_DELEGATE_ThreeParams ( FTraceExternalRootsForReachabilityAnalysisDelegate  ,
FGarbageCollectionTracer ,
EObjectFlags  ,
bool   
)

Delegate type for reachability analysis external roots callback. First parameter is FGarbageCollectionTracer to use for tracing, second is flags with which objects should be kept alive regardless, third is whether to force single threading

◆ DECLARE_MULTICAST_DELEGATE_TwoParams() [1/3]

FCoreUObjectDelegates::DECLARE_MULTICAST_DELEGATE_TwoParams ( FCompiledInUObjectsRegisteredDelegate  ,
FName  ,
ECompiledInUObjectsRegisteredStatus  Status 
)

Delegate invoked when requests are made to process pending UObject registrations. This will be invoked during the loading of modules and outside of module load to register any delayed registrations. This callback will be invoked regardless of if the module contained any UObject definitions. The callback will also be invoked during module load in monolithic builds.

See ECompiledInUObjectsRegisteredStatus for more detailed information about the notifications.

◆ DECLARE_MULTICAST_DELEGATE_TwoParams() [2/3]

FCoreUObjectDelegates::DECLARE_MULTICAST_DELEGATE_TwoParams ( FOnPackageReloaded  ,
EPackageReloadPhase  ,
FPackageReloadedEvent  
)

Called by ReloadPackage during package reloading. It will be called several times for different phases of fix-up to allow custom code to handle updating objects as needed

◆ DECLARE_MULTICAST_DELEGATE_TwoParams() [3/3]

FCoreUObjectDelegates::DECLARE_MULTICAST_DELEGATE_TwoParams ( FPreLoadMapWithContextDelegate  ,
const FWorldContext ,
const FString &   
)

Sent at the very beginning of LoadMap

◆ GetGarbageCollectReportGarbageReferencers()

FCoreUObjectDelegates::FOnReportGarbageReferencers & FCoreUObjectDelegates::GetGarbageCollectReportGarbageReferencers ( )
static

◆ GetGarbageCollectStartedDelegate()

FSimpleMulticastDelegate & FCoreUObjectDelegates::GetGarbageCollectStartedDelegate ( )
static

Called at the very beginning of garbage collection, once the GC lock is held.

◆ GetPostGarbageCollect()

FSimpleMulticastDelegate & FCoreUObjectDelegates::GetPostGarbageCollect ( )
static

Called after garbage collection (before purge phase if incremental purge is enabled and after purge phase if incremental purge is disabled)

◆ GetPostPurgeGarbageDelegate()

FSimpleMulticastDelegate & FCoreUObjectDelegates::GetPostPurgeGarbageDelegate ( )
static

Called after purging unreachable objects during garbage collection

◆ GetPreGarbageCollectDelegate()

FSimpleMulticastDelegate & FCoreUObjectDelegates::GetPreGarbageCollectDelegate ( )
static

Called before garbage collection, before the GC lock is acquired.

Member Data Documentation

◆ CompiledInUObjectsRegisteredDelegate

FCoreUObjectDelegates::FCompiledInUObjectsRegisteredDelegate FCoreUObjectDelegates::CompiledInUObjectsRegisteredDelegate
static

◆ CompiledInUObjectsRemovedDelegate

FCoreUObjectDelegates::FCompiledInUObjectsRemovedDelegate FCoreUObjectDelegates::CompiledInUObjectsRemovedDelegate
static

◆ GarbageCollectComplete

FSimpleMulticastDelegate FCoreUObjectDelegates::GarbageCollectComplete
static

Called after garbage collection is complete, all objects have been purged (regardless of whether incremental purge is enabled or not), memory has been trimmed and all other GC callbacks have been fired.

◆ GetPrimaryAssetIdForObject

FCoreUObjectDelegates::FGetPrimaryAssetIdForObject FCoreUObjectDelegates::GetPrimaryAssetIdForObject
static

◆ IsPackageOKToSaveDelegate

FCoreUObjectDelegates::FIsPackageOKToSaveDelegate FCoreUObjectDelegates::IsPackageOKToSaveDelegate
static

◆ NetworkFileRequestPackageReload

FCoreUObjectDelegates::FNetworkFileRequestPackageReload FCoreUObjectDelegates::NetworkFileRequestPackageReload
static

◆ OnPackageReloaded

FCoreUObjectDelegates::FOnPackageReloaded FCoreUObjectDelegates::OnPackageReloaded
static

◆ OnPostInitSparseClassData

FCoreUObjectDelegates::FOnPostInitSparseClassData FCoreUObjectDelegates::OnPostInitSparseClassData
static

◆ PackageCreatedForLoad

FCoreUObjectDelegates::FPackageCreatedForLoad FCoreUObjectDelegates::PackageCreatedForLoad
static

◆ PostDemoPlay

FSimpleMulticastDelegate FCoreUObjectDelegates::PostDemoPlay
static

Sent when a network replay has started

◆ PostGarbageCollectConditionalBeginDestroy

FSimpleMulticastDelegate FCoreUObjectDelegates::PostGarbageCollectConditionalBeginDestroy
static

Called after ConditionalBeginDestroy phase of garbage collection

◆ PostLoadMapWithWorld

FCoreUObjectDelegates::FPostLoadMapDelegate FCoreUObjectDelegates::PostLoadMapWithWorld
static

◆ PostReachabilityAnalysis

FSimpleMulticastDelegate FCoreUObjectDelegates::PostReachabilityAnalysis
static

Called after reachability analysis, before any purging

◆ PreGarbageCollectConditionalBeginDestroy

FSimpleMulticastDelegate FCoreUObjectDelegates::PreGarbageCollectConditionalBeginDestroy
static

Called before ConditionalBeginDestroy phase of garbage collection

◆ PreLoadMap

FCoreUObjectDelegates::FPreLoadMapDelegate FCoreUObjectDelegates::PreLoadMap
static

◆ PreLoadMapWithContext

FCoreUObjectDelegates::FPreLoadMapWithContextDelegate FCoreUObjectDelegates::PreLoadMapWithContext
static

◆ RegisterClassForHotReloadReinstancingDelegate

PRAGMA_DISABLE_DEPRECATION_WARNINGS TMulticastDelegate< void(UClass *OldClass, UClass *NewClass, EHotReloadedClassFlags Flags)> FCoreUObjectDelegates::RegisterClassForHotReloadReinstancingDelegate
static

Delegate for registering hot-reloaded classes that changed after hot-reload for reinstancing

CoreUObject delegates

◆ ReinstanceHotReloadedClassesDelegate

TMulticastDelegate< void()> FCoreUObjectDelegates::ReinstanceHotReloadedClassesDelegate
static

Delegate for reinstancing hot-reloaded classes

◆ ReloadAddedClassesDelegate

FCoreUObjectDelegates::FReloadAddedClassesDelegate FCoreUObjectDelegates::ReloadAddedClassesDelegate
static

◆ ReloadCompleteDelegate

FCoreUObjectDelegates::FReloadCompleteDelegate FCoreUObjectDelegates::ReloadCompleteDelegate
static

◆ ReloadReinstancingCompleteDelegate

PRAGMA_ENABLE_DEPRECATION_WARNINGS FCoreUObjectDelegates::FReloadReinstancingCompleteDelegate FCoreUObjectDelegates::ReloadReinstancingCompleteDelegate
static

◆ ShouldCookPackageForPlatform

FCoreUObjectDelegates::FShouldCookPackageForPlatform FCoreUObjectDelegates::ShouldCookPackageForPlatform
static

◆ ShouldLoadOnTop

FCoreUObjectDelegates::FOnLoadObjectsOnTop FCoreUObjectDelegates::ShouldLoadOnTop
static

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