Just like the title, I follow the steps on Documentation.
But I don’t know why the character’s HUD will show on my main menu.
Was there something I missed?
I use the third person project.
Thanks for help.
You’ll need to find where it gets created, perhaps in the character’s Begin Play. Maybe in the controller, maybe in the Game Mode. With the info provided, we’re playing a guessing game here.
In most cases for main menu uses a special level with no playable character logic, for this level you can just reset HUD and Pawn classes.
But in case you have menu also in game level and want to hide HUD, inside you HUD class possibly there is a creation of widget for UI, you can just hide this widget on menu call.
Agreed! My bet, you most likely are creating the player HUD in the player character and thus any level that has the player character will also have the HUD. You could just create a new game mode with no default player character and if my suspicion is correct this will solve your problem. If you need help understanding game modes you can check out video #19 in the link below.
It’s work, only need change another game mode will be ok. Thank you so much.
Yes thanks, Nebula with your input and tutorial videos I was able to solve this HUD problem as well.
Winner! Thanks Cap!
Tutorials are messy. They give a lot of bad and/or incomplete information. As you start mixing them your projects also become messy as a result. SO! Just in case anyone comes across this looking for the same answer I was looking for. Which is “How to Hide HUD in main/start Menu” Check this out.
If you have your main menu setup as a level, and are using that level blueprint to load your menu BP/Widget. Make sure in the “World Settings” for the main menu level/map the game mode is set to “none”. Then in “Project Settings” set the "Default Game Mode to “Game Mode” it is the default game mode that is in all projects.
This will load your Main Menu Level without your Custom HUD. Then on any subsequent level set the appropriate things in world settings.
Thanks a bunch! This worked for me when I just changed the GMB here, just for the Main Menu.