Player input not working (Lecture 45)

In lecture 45 there is a function which is executes whenever player hits enter, but it doesn’t seem to be working for me.

void UBullCowCartridge::OnInput(const FString& Input) // When the player hits enter
{
    PrintLine("Clear Screen");
    ClearScreen();
    PrintLine("Cleared Screen");
    FString HiddenWord = "HiddenWork";
}

I saved the code in file and then compiled too but it just won’t work or give out any error. Please help

Solved. Turns out I need to press Tab first to play, got the solution from Discord.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.