Im trying to print a string on the game. (Following the Hello World tutorial from Epic) But I don’t know what’s going wrong.
void AHelloWorld::BeginPlay()
{
Super::BeginPlay();
if (GEngine)
{
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Yellow, TEXT("Hello World!"));
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Yellow, FString::FromInt(Number));
}
}
When I build the solution it says that GEngine is not defined. Im building with “Development Editor” and using Win64.