x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.8
Tags:
more ▼

asked Jul 29 '15 at 04:06 AM in C++ Programming

avatar image

Connorbid
11 1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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 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

  1. this link from launcher https://docs.unrealengine.com/latest/INT/Resources/SampleGames/ShooterGame/index.html?utm_source=launcher&utm_medium=ue&utm_campaign=uelearn#menusystem 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

more ▼

answered Jul 30 '15 at 01:23 AM

avatar image

happyhorror
576 53 46 72

avatar image colin.avrech Feb 28 '16 at 04:13 AM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question