4.9.2 AddOnScreenDebugMessage doesn't print when editor is not in game mode

Hello Dough,

I think You messed up something with Your testing. I’ve just checked it and in my engine version (launcher 4.9.2) GEngine is definitively valid in normal editor mode (not PIE). So this code:

if (GEngine)
 {
     GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, TEXT("adafdaff"));
     UE_LOG(LogTemp, Warning, TEXT("Print On Tick"));
 }

causes “Print on Tick” to be printed to output log no matter if I am in regular editor mode or PIE. Hovewer “asafdaff” gets printed only in PIE.

1 Like