Display Order of AddOnScreenDebugMessage

Hi,

I’ve noticed something strange today: I had two UEngine->AddOnScreenDebugMessages(…) in a function and when I called the function in my blueprint, the display order of the messages was reversed. I tested it then with an extra function:

void APoissonDistributedHemisphere::printOrderTest()
{
	GEngine->AddOnScreenDebugMessage(-1, 15.f, FColor::Yellow, FString::Printf(TEXT("1")));
	GEngine->AddOnScreenDebugMessage(-1, 15.f, FColor::Yellow, FString::Printf(TEXT("2")));
	GEngine->AddOnScreenDebugMessage(-1, 15.f, FColor::Yellow, FString::Printf(TEXT("3")));
	GEngine->AddOnScreenDebugMessage(-1, 15.f, FColor::Yellow, FString::Printf(TEXT("4")));
	GEngine->AddOnScreenDebugMessage(-1, 15.f, FColor::Yellow, FString::Printf(TEXT("5")));
}

and when I called the blueprint function, I saw indeed the reversed order:

Is this behaviour intended?

Hi! E1andri1

Please check:

Set bNewerOnTop to false.

for (int32 i=0; i<5; ++i)
{
    GEngine->AddOnScreenDebugMessage(-1, 15.f, FColor::Yellow, FString::Printf(TEXT("%d"), i), false);
}