Skip to content
Snippets Groups Projects
Commit dff62047 authored by Simon Oehrl's avatar Simon Oehrl
Browse files

Merge branch 'fix/invalidate-display-log-actor' into 'develop'

Invalidate display log actor after world is finished

See merge request VR-Group/unreal-development/plugins/universallogging!19
parents d7257923 418be556
No related branches found
No related tags found
1 merge request!19Invalidate display log actor after world is finished
......@@ -20,6 +20,7 @@ void UniversalLoggingImpl::StartupModule()
FWorldDelegates::OnPostWorldInitialization.AddRaw(this, &UniversalLoggingImpl::OnWorldStart);
FWorldDelegates::OnWorldPostActorTick.AddRaw(this, &UniversalLoggingImpl::OnPostActorTick);
FWorldDelegates::OnWorldCleanup.AddRaw(this, &UniversalLoggingImpl::OnWorldEnd);
#if WITH_EDITOR
FEditorDelegates::BeginPIE.AddRaw(this, &UniversalLoggingImpl::OnSessionStart);
......@@ -52,6 +53,11 @@ void UniversalLoggingImpl::OnWorldStart(UWorld* World, const UWorld::Initializat
ResetSessionId("Play");
}
void UniversalLoggingImpl::OnWorldEnd(UWorld*, bool bSessionEnded, bool bCleanupResources)
{
On_Screen_Log_Actor = nullptr;
}
void UniversalLoggingImpl::OnSessionStart(const bool)
{
Session_ID = "";
......
......@@ -15,6 +15,7 @@ public:
void ShutdownModule() override;
void OnWorldStart(UWorld*, const UWorld::InitializationValues);
void OnWorldEnd(UWorld*, bool bSessionEnded, bool bCleanupResources);
void OnSessionStart(const bool);
void OnSessionEnd(const bool);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment