How do you edit the main menu of shooter game example?

I have the shooter game demo which is on the market place for free to downlaod and i have been working on building off the example to learn as i go kind of a thing. Only thing is i am currently stuck at the C++ part of it. How do I edit the C++ part of the game to change the game menu and add and delete options to make it my own menu? Also if i delete the C++ part of the game and use only Blueprints what will that effect if i delete it? Thank you for anyone who helps me.

Hi,

have to say first - seems it was made before UMG release, of course working, but i still complex, if you don’t know basics of C++ i really recommend you learn basics of UMG in epic’s documentation UMG UI Designer for Unreal Engine | Unreal Engine 5.1 Documentation and any video tutorials you find, because writing menus and huds on C++ really hardcore way, that have some pros, but many cons to human visual logic of people who doesn’t code in hardcore ways

  1. this link from launcher Sample Game Projects for Unreal Engine | Unreal Engine 5.1 Documentation doesn’t explain every single thing, but most important

Main Menu

The main menu is opened automatically when the game starts by specifying the ShooterEntry map as the default. It loads a special GameMode, AShooterGameMode, that uses the AShooterPlayerController_Menu class which opens the main menu by creating a new instance of the FShooterMainMenu class in its PostInitializeComponents() function.

  1. let’s take closier look at AShooterGameMode

since main menu in this example built with C++ first you need to do is generate VS files, simply click right mouse button on .uproject file inside project folder and select “generate visual studio project files”

  1. open generated .sln file with Visual Studio (as i know only 12+ version VS supported, type doesn’t matter, exen express can open it) and press ctrl+shift+F to open search menu in VS and paste here AShooterGameMode

in many files VS find for you try look at list of files where this “AShooterGameMode” appear, depending on my programming knowledges i think most interesting here is

Source\ShooterGame\Private\UI\Menu\ShooterMainMenu.cpp
Source\ShooterGame\Private\Online\ShooterGameMode.cpp

these files should have most various things about main menu, also don’t forget their .h version with definition

Just hopped on a UE4 team that needs to replace unreal’s menu with our custom one. Thanks for providing good info to start off of.