Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Multiplayer Game Development with Unreal Engine 5

You're reading from   Multiplayer Game Development with Unreal Engine 5 Create compelling multiplayer games with C++, Blueprints, and Unreal Engine's networking features

Arrow left icon
Product type Paperback
Published in Oct 2023
Publisher Packt
ISBN-13 9781803232874
Length 394 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Marco Secchi Marco Secchi
Author Profile Icon Marco Secchi
Marco Secchi
Arrow right icon
View More author details
Toc

Table of Contents (22) Chapters Close

Preface 1. Part 1:Introducing Multiplayer Games
2. Chapter 1: Getting Started with Multiplayer Game Development FREE CHAPTER 3. Chapter 2: Understanding Networking Basics 4. Chapter 3: Testing the Multiplayer System with a Project Prototype 5. Part 2:Networking and Multiplayer Games in Unreal Engine
6. Chapter 4: Setting Up Your First Multiplayer Environment 7. Chapter 5: Managing Actors in a Multiplayer Environment 8. Chapter 6: Replicating Properties Over the Network 9. Chapter 7: Using Remote Procedure Calls (RPCs) 10. Part 3:Improving Your Game
11. Chapter 8: Introducing AI into a Multiplayer Environment 12. Chapter 9: Extending AI Behaviors 13. Chapter 10: Enhancing the Player Experience 14. Chapter 11: Debugging a Multiplayer Game 15. Part 4:Deploying Your Game Online
16. Chapter 12: Managing Multiplayer Sessions 17. Chapter 13: Handling Data During a Session 18. Chapter 14: Deploying Multiplayer Games 19. Chapter 15: Adding Epic Online Services (EOS) 20. Index 21. Other Books You May Enjoy

Creating a session

In this section, you will be creating a user interface widget that will let you manage session creation. In particular, the Create Session widget will do the following:

  • Let the player select how many players are allowed to connect in a single session
  • Create the session with the click of a button
  • Open the game level and start the game

The first thing we must do is create the actual widget so, in the Blueprints folder of the Content Browser, do the following:

  1. Right-click and select User Interface | Widget Blueprint. In the pop-up window that appears, select User Widget, as shown in Figure 12.2:
Figure 12.2 – The user widget creation window

Figure 12.2 – The user widget creation window

  1. Name the newly created widget WB_CreateSession and double-click on it to open it.

Now, we will add the visual elements.

Adding the visual elements

Once the editor is open, select the Designer view and do the following:

  1. From the Palette...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime