Navigation
API > API/Runtime > API/Runtime/CoreUObject
Global CoreUObject delegates
| Name | FCoreUObjectDelegates |
| Type | struct |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include Path | #include "UObject/UObjectGlobals.h" |
Syntax
struct FCoreUObjectDelegates
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FCompiledInUObjectsRegisteredDelegate | TMulticastDelegate_TwoParams< void, FName, ECompiledInUObjectsRegisteredStatus Status > | Delegate invoked when requests are made to process pending UObject registrations. | UObject/UObjectGlobals.h |
| FCompiledInUObjectsRemovedDelegate | TMulticastDelegate_OneParam< void, TConstArrayView< UPackage * > > | Multicast delegate that is executed when any UObjects in packages need destroying before modules are unloaded. | UObject/UObjectGlobals.h |
| FGetPrimaryAssetIdForObject | TBaseDelegate_OneParam< FPrimaryAssetId, const UObject * > | Called when trying to figure out if a UObject is a primary asset, if it doesn't implement GetPrimaryAssetId itself | UObject/UObjectGlobals.h |
| FIsPackageOKToSaveDelegate | TBaseDelegate_ThreeParams< bool, UPackage *, const FString &, FOutputDevice * > | Delegate used by SavePackage() to check whether a package should be saved | UObject/UObjectGlobals.h |
| FNetworkFileRequestPackageReload | TBaseDelegate_OneParam< void, const TArray< FString > & > | Called when a package reload request is received from a network file server | UObject/UObjectGlobals.h |
| FOnAssetLoaded | TMulticastDelegate_OneParam< void, UObject * > | Callback for when an asset is loaded. | UObject/UObjectGlobals.h |
| FOnEndLoadPackage | TMulticastDelegate_OneParam< void, const FEndLoadPackageContext & > | Callback when packages end loading in LoadPackage or AsyncLoadPackage. | UObject/UObjectGlobals.h |
| FOnLoadObjectsOnTop | TBaseDelegate_OneParam< bool, const FString & > | Queries whether an object should be loaded on top ( replace ) an already existing one | UObject/UObjectGlobals.h |
| FOnObjectModified | TMulticastDelegate_OneParam< void, UObject * > | Called when an object is registered for change with UObject::Modify. | UObject/UObjectGlobals.h |
| FOnObjectPreSave | TMulticastDelegate_TwoParams< void, UObject *, FObjectPreSaveContext > | Callback for when an asset is saved. | UObject/UObjectGlobals.h |
| FOnObjectPropertyChanged | TMulticastDelegate_TwoParams< void, UObject *, struct FPropertyChangedEvent & > | Callback for object property modifications, called by UObject::PostEditChangeProperty with a single property event | UObject/UObjectGlobals.h |
| FOnObjectsReinstanced | TMulticastDelegate_OneParam< void, const FReplacementObjectMap & > | Called when UObjects have been re-instanced to allow others a chance to fix their references Note that this is called after references to replacement objects are fixed up in other objects (i.e. all object references should be self-consistent). | UObject/UObjectGlobals.h |
| FOnObjectsReplaced | TMulticastDelegate_OneParam< void, const FReplacementObjectMap & > | UObject/UObjectGlobals.h | |
| FOnObjectTransacted | TMulticastDelegate_TwoParams< void, UObject *, const class FTransactionObjectEvent & > | Callback for an object being transacted | UObject/UObjectGlobals.h |
| FOnPackageReloaded | TMulticastDelegate_TwoParams< void, EPackageReloadPhase, FPackageReloadedEvent * > | Called by ReloadPackage during package reloading. | UObject/UObjectGlobals.h |
| FOnPostInitSparseClassData | TMulticastDelegate_ThreeParams< void, UClass *, UScriptStruct *, void * > | Called when new sparse class data has been created (and the base data initialized) for the given class | UObject/UObjectGlobals.h |
| FOnPostObjectPropertyChanged | TMulticastDelegate_TwoParams< void, UObject *, const struct FPropertyChangedChainEvent & > | Callback for object property modifications, called by UObject::PostEditChangeChainProperty with a full property changed chain event | UObject/UObjectGlobals.h |
| FOnPreObjectPropertyChanged | TMulticastDelegate_TwoParams< void, UObject *, const class FEditPropertyChain & > | Callback for object property modifications, called by UObject::PreEditChange with a full property chain | UObject/UObjectGlobals.h |
| FOnReportGarbageReferencers | TMulticastDelegate_OneParam< void, TConstArrayView< struct FGarbageReferenceInfo > > | Called when garbage collection detects references to objects that are marked for explicit destruction by MarkAsGarbage | UObject/UObjectGlobals.h |
| FOnVerseDeadReferences | TMulticastDelegate_ThreeParams< void, const TSet< UClass * > &, const TSet< UObject * > &, const TSet< UObject * > & > | Called when verse found instances of object that their classes is now dead (renamed or deleted) | UObject/UObjectGlobals.h |
| FPackageCreatedForLoad | TMulticastDelegate_OneParam< void, class UPackage * > | Called when path to world root is changed | UObject/UObjectGlobals.h |
| FPostLoadMapDelegate | TMulticastDelegate_OneParam< void, UWorld * > | Sent at the end of LoadMap | UObject/UObjectGlobals.h |
| FPreLoadMapDelegate | TMulticastDelegate_OneParam< void, const FString & > | Sent at the very beginning of LoadMap | UObject/UObjectGlobals.h |
| FPreLoadMapWithContextDelegate | TMulticastDelegate_TwoParams< void, const FWorldContext &, const FString & > | Sent at the very beginning of LoadMap | UObject/UObjectGlobals.h |
| FReloadAddedClassesDelegate | TMulticastDelegate_OneParam< void, const TArray< UClass * > & > | Delegate for reloaded classes that have been added. | UObject/UObjectGlobals.h |
| FReloadCompleteDelegate | TMulticastDelegate_OneParam< void, EReloadCompleteReason > | Delegate for reload re-instancing complete | UObject/UObjectGlobals.h |
| FReloadReinstancingCompleteDelegate | TMulticastDelegate_NoParams< void > | Delegate for reload re-instancing complete | UObject/UObjectGlobals.h |
| FReplacementObjectMap | TMap< UObject *, UObject * > | Called when UObjects have been replaced to allow others a chance to fix their references Note that this is called after properties are copied from old to new instances but before references to replacement objects are fixed up in other objects (i.e. other objects can still be pointing to old data) | UObject/UObjectGlobals.h |
| FShouldCookPackageForPlatform | TBaseDelegate_TwoParams< bool, const UPackage *, const ITargetPlatform * > | Called during cooking to see if a specific package should be cooked for a given target platform | UObject/UObjectGlobals.h |
| FTraceExternalRootsForReachabilityAnalysisDelegate | TMulticastDelegate_ThreeParams< void, FGarbageCollectionTracer &, EObjectFlags, bool > | Delegate type for reachability analysis external roots callback. | UObject/UObjectGlobals.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| CompiledInUObjectsRegisteredDelegate | FCompiledInUObjectsRegisteredDelegate | UObject/UObjectGlobals.h | |
| CompiledInUObjectsRemovedDelegate | FCompiledInUObjectsRemovedDelegate | UObject/UObjectGlobals.h | |
| GarbageCollectComplete | FSimpleMulticastDelegate | 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. | UObject/UObjectGlobals.h |
| GetPrimaryAssetIdForObject | FGetPrimaryAssetIdForObject | UObject/UObjectGlobals.h | |
| IsPackageOKToSaveDelegate | FIsPackageOKToSaveDelegate | UObject/UObjectGlobals.h | |
| NetworkFileRequestPackageReload | FNetworkFileRequestPackageReload | UObject/UObjectGlobals.h | |
| ObjectsModifiedThisFrame | TSet< UObject * > | Set of objects modified this frame, to prevent multiple triggerings of the OnObjectModified delegate | UObject/UObjectGlobals.h |
| OnAssetLoaded | FOnAssetLoaded | UObject/UObjectGlobals.h | |
| OnEndLoadPackage | FOnEndLoadPackage | UObject/UObjectGlobals.h | |
| OnObjectConstructed | FOnObjectConstructed | UObject/UObjectGlobals.h | |
| OnObjectModified | FOnObjectModified | UObject/UObjectGlobals.h | |
| OnObjectPostCDOCompiled | FOnObjectPostCDOCompiled | UObject/UObjectGlobals.h | |
| OnObjectPreSave | FOnObjectPreSave | UObject/UObjectGlobals.h | |
| OnObjectPropertyChanged | FOnObjectPropertyChanged | UObject/UObjectGlobals.h | |
| OnObjectRenamed | FOnObjectRenamed | UObject/UObjectGlobals.h | |
| OnObjectsReinstanced | FOnObjectsReinstanced | UObject/UObjectGlobals.h | |
| OnObjectsReplaced | FOnObjectsReplaced | UObject/UObjectGlobals.h | |
| OnObjectTransacted | FOnObjectTransacted | UObject/UObjectGlobals.h | |
| OnPackageReloaded | FOnPackageReloaded | UObject/UObjectGlobals.h | |
| OnPostInitSparseClassData | FOnPostInitSparseClassData | UObject/UObjectGlobals.h | |
| OnPostObjectPropertyChanged | FOnPostObjectPropertyChanged | UObject/UObjectGlobals.h | |
| OnPreObjectPropertyChanged | FOnPreObjectPropertyChanged | UObject/UObjectGlobals.h | |
| OnVerseDeadObjectReferences | FOnVerseDeadReferences | UObject/UObjectGlobals.h | |
| PackageCreatedForLoad | FPackageCreatedForLoad | UObject/UObjectGlobals.h | |
| PostDemoPlay | FSimpleMulticastDelegate | Sent when a network replay has started | UObject/UObjectGlobals.h |
| PostGarbageCollectConditionalBeginDestroy | FSimpleMulticastDelegate | Called after ConditionalBeginDestroy phase of garbage collection | UObject/UObjectGlobals.h |
| PostLoadMapWithWorld | FPostLoadMapDelegate | UObject/UObjectGlobals.h | |
| PostReachabilityAnalysis | FSimpleMulticastDelegate | Called after reachability analysis, before any purging | UObject/UObjectGlobals.h |
| PreGarbageCollectConditionalBeginDestroy | FSimpleMulticastDelegate | Called before ConditionalBeginDestroy phase of garbage collection | UObject/UObjectGlobals.h |
| PreLoadMap | FPreLoadMapDelegate | UObject/UObjectGlobals.h | |
| PreLoadMapWithContext | FPreLoadMapWithContextDelegate | UObject/UObjectGlobals.h | |
| RegisterClassForHotReloadReinstancingDelegate | TMulticastDelegate< void(UClass *OldClass, UClass *NewClass, EHotReloadedClassFlagsFlags)> | Delegate for registering hot-reloaded classes that changed after hot-reload for reinstancing | UObject/UObjectGlobals.h |
| ReinstanceHotReloadedClassesDelegate | TMulticastDelegate< void()> | Delegate for reinstancing hot-reloaded classes | UObject/UObjectGlobals.h |
| ReloadAddedClassesDelegate | FReloadAddedClassesDelegate | UObject/UObjectGlobals.h | |
| ReloadCompleteDelegate | FReloadCompleteDelegate | UObject/UObjectGlobals.h | |
| ReloadReinstancingCompleteDelegate | FReloadReinstancingCompleteDelegate | UObject/UObjectGlobals.h | |
| ShouldCookPackageForPlatform | FShouldCookPackageForPlatform | UObject/UObjectGlobals.h | |
| ShouldLoadOnTop | FOnLoadObjectsOnTop | UObject/UObjectGlobals.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
DECLARE_TS_MULTICAST_DELEGATE_OneParam
(
FOnObjectConstructed, |
UObject/UObjectGlobals.h | ||
| Called when an object is renamed this gets called in both the editor and standalone game editor builds, for every object renamed | UObject/UObjectGlobals.h | ||
DECLARE_TS_MULTICAST_DELEGATE_TwoParams
(
FOnObjectPostCDOCompiled, |
Called after the Blueprint compiler has finished generating the Class Default Object (CDO) for a class. | UObject/UObjectGlobals.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void BroadcastOnObjectModified
(
UObject* Object |
Broadcast OnObjectModified if the broadcast hasn't occurred for this object in this frame | UObject/UObjectGlobals.h | |
| Broadcast OnObjectRenamed event | UObject/UObjectGlobals.h | ||
static FOnReportGarbageReferencers & GetGarbageCollectReportGarbageReferencers() |
UObject/UObjectGlobals.h | ||
static FSimpleMulticastDelegate & GetGarbageCollectStartedDelegate() |
Called at the very beginning of garbage collection, once the GC lock is held. | UObject/UObjectGlobals.h | |
static FSimpleMulticastDelegate & GetPostGarbageCollect() |
Called after garbage collection (before purge phase if incremental purge is enabled and after purge phase if incremental purge is disabled) | UObject/UObjectGlobals.h | |
static FSimpleMulticastDelegate & GetPostPurgeGarbageDelegate() |
Called after purging unreachable objects during garbage collection | UObject/UObjectGlobals.h | |
static FSimpleMulticastDelegate & GetPreGarbageCollectDelegate() |
Called before garbage collection, before the GC lock is acquired. | UObject/UObjectGlobals.h |