According to the official documentation at http://api.unrealengine.com/INT/API/Runtime/Engine/Engine/UEngine/AddOnScreenDebugMessage/ the signature for AddOnScreenDebugMessage is as follows:
AddOnScreenDebugMessage
(
uint64 Key,
float TimeToDisplay,
FColor DisplayColor,
const FString & DebugMessage,
bool bNewerOnTop,
const FVector2D & TextScale
)
AddOnScreenDebugMessage
(
int32 Key,
float TimeToDisplay,
FColor DisplayColor,
const FString & DebugMessage,
bool bNewerOnTop,
const FVector2D & TextScale
)
The signature did not changed from 4.18 but the behavior did. Now it won’t work for us with key set to anything other than -1 (INDEX_NONE). Any FString passed with key other than INDEX_NONE won’t apper on the screen. Unfortunately, tt breaks our logging system and I cannot figure out why.