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.
asked Jul 29 '15 at 04:06 AM in C++ Programming
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 https://docs.unrealengine.com/latest/INT/Engine/UMG/ 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
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.
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"
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
these files should have most various things about main menu, also don't forget their .h version with definition
answered Jul 30 '15 at 01:23 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here