Book Image

Unreal Engine Game Development Cookbook

By : John P. Doran
Book Image

Unreal Engine Game Development Cookbook

By: John P. Doran

Overview of this book

Table of Contents (18 chapters)
Unreal Engine Game Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a main menu


A main menu can serve as an introduction to your game and is a great place for us to discuss some additional things that UMG has, such as texts and buttons. We'll also learn how we can make buttons do things. Let's spend some time to see just how easy it is to create one!

Note

For more information on the client-server model, refer to https://en.wikipedia.org/wiki/Client%E2%80%93server_model.

How to do it…

To give you an idea of how it works, let's create an empty level to hold our menu:

  1. Create a new level by going to File | New Level and select Empty Level.

  2. Next, inside the Content Browser tab, go to our UI folder and navigate to Add New | User Interface | Widget Blueprint and give it a name (MainMenu). Double-click on it to open up the editor.

    In this menu, we are going to have the title of the game, and then a series of buttons the player can press.

  3. From the Palette tab, open up the Common section and drag and drop a Button onto the middle of the screen.

  4. Select the button and...