Skip to content
Snippets Groups Projects
Commit 9c1e02e3 authored by mbellgardt's avatar mbellgardt
Browse files

Merge branch 'mbellgardt-develop-patch-90379' into 'develop'

Fix Issue where HUD was nullptr

See merge request VR-Group/unreal-development/plugins/universallogging!12
parents c98c0049 58607e4a
No related branches found
No related tags found
2 merge requests!16Develop,!12Fix Issue where HUD was nullptr
Pipeline #167344 failed
...@@ -63,6 +63,7 @@ void UniversalLoggingImpl::OnPostActorTick(UWorld* World, ELevelTick LevelTick, ...@@ -63,6 +63,7 @@ void UniversalLoggingImpl::OnPostActorTick(UWorld* World, ELevelTick LevelTick,
if (!PlayerController) if (!PlayerController)
return; return;
auto HUD = PlayerController->GetHUD(); auto HUD = PlayerController->GetHUD();
if (HUD)
HUD->AddPostRenderedActor(On_Screen_Log_Actor); // Doing this every tick seems excessive (AddPostRenderActor checks for duplicates, though) HUD->AddPostRenderedActor(On_Screen_Log_Actor); // Doing this every tick seems excessive (AddPostRenderActor checks for duplicates, though)
HUD->bShowOverlays = true; // Yuck, but necessary as otherwise the Actor's PostRenderFor method is not called. HUD->bShowOverlays = true; // Yuck, but necessary as otherwise the Actor's PostRenderFor method is not called.
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment