Overview - Quick match with peer-to-peer - (Unity module)
AccelByte Gaming Services (AGS) SDK for Unity does not support P2P on WebGL. This module cannot be used in WebGL builds.
Introduction
Matchmaking with other players using peer-to-peer (P2P) is one way to reduce the operation costs associated with using dedicated servers. This module shows you how matchmaking with P2P can be set up.
Prerequisites
In order to complete this module, you will need:
-
To have completed the following modules:
-
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": ["MatchmakingP2PEssentials"],
"forceDisabledOtherModules" : true,
}
Learning objectives
At the end of this module, you will know how to implement:
- Matchmaking using peer-to-peer.
Preview
At the end of this module, your project will look like the images below.
-
Start matchmaking
-
Cancel matchmaking