I’m trying to use FCoreUObjectDelegates to determine the state of the UWorld.
FCoreUObjectDelegates::PreLoadMap.AddUObject( this , &ThisClass::HandlePreLoadMap );
FCoreUObjectDelegates::PostLoadMapWithWorld.AddUObject( this , &ThisClass::HandlePostLoadMap );
void HandlePreLoadMap( const FString& InMapName )
{
bIsWorldFullyLoaded = false;
}
void HandlePostLoadMap( UWorld* InWorld )
{
if (InWorld) { bIsWorldFullyLoaded = true; }
}
It works perfectly fine in standalone, but in PIE neither delegate is ever called.