I am using UE4 4.10.4, and whenever I use my “PlayButton” it removes all of the widgets, but it does not let me move, shoot, or anything else. Here are some screenshots.
I don’t see any screenshots of the PlayerHUD, so I don’t know what’s up with that. Could you try feeding GetPlayerController into the SetInputModeGameOnly Node?
Are you sure you’re spawning correctly in the world? If you’d disconnect the CreateWidget node from the BeginPlay in your Level Blueprint temporarily, can you move around and see the PlayerHUD?
The problem isn’t within your MainMenuWidget then. Do you have any Player Start in your level? Are you using the right classes in your Game Mode Settings?
And your PlayerHUD, I can’t see that you’re actually creating the widget anywhere and adding it to your viewport.
Thank you so much! When I switched the default pawn class to “PlayerChar” it let me play the game, but I’m still having a bit of an error: Screen capture - e359a26b9012496cc9537ebd4ebc397c - Gyazo
The game wants to start before I even hit PlayGame. Is there a quick fix to that?
If you’re just looking for a quick fix, then SetGamePaused might work. Set the game to paused when you start the game (EventBeginPlay) and when you press the Play Button, unpause the game.