Overview - Create joinable sessions with peer-to-peer - (Unity module)
Browsing P2P sessions is not supported in WebGL builds due to the AccelByte Gaming Services (AGS) SDK for Unity lacking the P2P functionality for WebGL.
Introduction
A match session allows the players to directly create a game session and join a specific game session. In this module, you will learn how players can create and join a game session using peer-to-peer (P2P).
Prerequisites
In order to complete this module, you will need:
The Byte Wars
tutorialmodules
branch checked out in your local Byte Wars Unity project repository.To have force enabled this module. You can do this by adding the following code to the
Assets/Resources/Modules/TutorialModuleConfig.json
file:{
"enableModulesOverride": true,
"forceEnabledModules": ["MatchSessionWithP2P"],
}
Learning objectives
At the end of this module, you will know how to implement creating match sessions using P2P.
Preview
At the end of this module, your project will look like the image below.