Reader small image

You're reading from  Multiplayer Game Development with Unreal Engine 5

Product typeBook
Published inOct 2023
PublisherPackt
ISBN-139781803232874
Edition1st Edition
Right arrow
Author (1)
Marco Secchi
Marco Secchi
author image
Marco Secchi

Marco Secchi is a passionate game programming teacher located in Milan, Italy. In the past, he has been a freelance programmer focusing on game and application development, however he is now currently a lecturer and Lead Game Advisor at NABA (Nuova Accademia di Belle Arti). Marco continues to hone his programming skills in the R&D department at NABA, while also working on personal projects too, involving game development and cultural heritage.
Read more about Marco Secchi

Right arrow

Creating the main menu level

In this section, you’ll be working on creating a new level that will serve as a starting point for creating a game session or joining one. You’ll be leveraging the power and flexibility of the previously created user interface by adding the needed Gameplay Framework classes, such as a dedicated GameMode and a player Pawn.

First things first, let’s open up your programming IDE and start writing some code!

Creating the Pawn

In this subsection, you’ll be creating a Pawn that will show the character model and activate the user interface through its controller. This Actor will also be used to show the character model when the player enters the main menu level.

So, from the Unreal Engine Editor, create a new C++ class extending from Pawn and call it US_MainMenuPawn. Once the class has been created, open the US_MainMenuPawn.h header file and add the following code just after the GENERATED_BODY() macro:

UPROPERTY(VisibleAnywhere...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Multiplayer Game Development with Unreal Engine 5
Published in: Oct 2023Publisher: PacktISBN-13: 9781803232874

Author (1)

author image
Marco Secchi

Marco Secchi is a passionate game programming teacher located in Milan, Italy. In the past, he has been a freelance programmer focusing on game and application development, however he is now currently a lecturer and Lead Game Advisor at NABA (Nuova Accademia di Belle Arti). Marco continues to hone his programming skills in the R&D department at NABA, while also working on personal projects too, involving game development and cultural heritage.
Read more about Marco Secchi