Hello, just a quick one.
I am trying to create main menu. I currently have a pause menu code located in character BP. It seems like that even if main menu is a completely blank level that my character is not even located in, it still loads stuff from it (like the pause menu code).
Now I can open the pause menu while in main menu.
The question is, how can I make it so the player is loaded only in the level he is supposed to. Or is there any other way to prevent main and pause menu collision?
You can set up rules in the GameMode class to specify which classes to use for the character and HUD. Per level, you can choose which game mode to use.
So, on your general game level you would create a GameMode “Game”, and for the Main Menu level you would create the GameMode “MainMenu”.
In this MainMenu GameMode you created you can select a HUD class specialized for the main menu level. In This HUD class you can implement the logic to open the default main menu.
Do the same for the Game GameMode but choose another HUD class, which will open the pause menu when you request the main menu widget.
1 Like
Thank you very much! So far it looks like all I needed was a new blank game mode without “Default Pawn class” selected for the Main Menu. I will update if I needed to do some any more steps
1 Like