I have tried everything , even enabling and disabling all on screen messages. nothing works.
The UE_LOG runs and works but not the add on screen.
#include "PuzzlePlatformsGameInstance.h"
UPuzzlePlatformsGameInstance::UPuzzlePlatformsGameInstance(const FObjectInitializer& ObjectInitializer)
{
UE_LOG(LogTemp, Display, TEXT("GameInstance: Constructor"));
}
void UPuzzlePlatformsGameInstance::Init()
{
UE_LOG(LogTemp, Display, TEXT("GameInstance: Init()"));
GEngine->AddOnScreenDebugMessage(-1, 15.0f, FColor::Yellow, TEXT("Your Message"));
}
void UPuzzlePlatformsGameInstance::Host()
{
//UEngine* Engine = GetEngine();
if (!ensure(GEngine != nullptr)) return;
GEngine->AddOnScreenDebugMessage(1, 10.f, FColor::Green, TEXT("Hosting"), true, FVector2D(2,2));
UE_LOG(LogTemp, Warning, TEXT("Host Run"));
//FScreenMessageString* Message = ScreenMessages.Find(-1);
//if (Message != NULL)Message->TextScale.X = Message->TextScale.Y = 1.0f;
}