Download

Why is GEngine->AddOnScreenDebugMessage printing "0"?


GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Yellow, TEXT("AM I WORKING?"));

Anywhere inside my ReceiveTick() function, this prints “0” in blue font only once.

  1. shouldn’t it print over and over again on each Tick?
  2. does the fact that it’s printing “0” mean that it’s running?

Very confused. This exact code works fine when inside a BeginPlay() function.

If you comment out the code from ReceiveTick function does it still show 0?

No, nothing is printed then.

Strange. Try using logs and see if it gets called only once too.

Actually…my ReceiveTick function isn’t even running. Not sure why.