Set up session template - 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.
Create a session template
A session template is a configuration template that defines your game session. In this tutorial, you will learn how to create a session template for the Elimination and Team Deathmatch game modes using the dedicated servers you configured in Dedicated servers with AMS.
- AGS Shared Cloud
- AGS Private Cloud
Log in to the AGS Admin Portal and go to your game namespace dashboard.
Go to Multiplayer > Matchmaking > Session Configurations. On the Session Template tab, click Add Session Template.
Fill out the new window with the configurations below for the Elimination game mode.
- Session Template Name: the unique name to identify your Session Template. Set it to unity-elimination-p2p.
- Min Players: the minimum number of players required in the session. Set it to 1.
- Max Players: the maximum number of players in the session. Set it to 4.
- Joinability: the joinability of the session. Set it to Open.
- Server: the session connection type. Set it to Peer to Peer (P2P).
Click Next until you arrive at the Summary page where you can review your session template configuration. Then, click Create.
Repeat these steps to create a new session template for Team Deathmatch by using the configuration below.
- Session Template Name: set it to unity-teamdeathmatch-p2p.
- Min Players: set it to 1.
- Max Players: set it to 8.
- Joinability: set it to Open.
- Server: set it to Peer to Peer (P2P).
Log in to the AccelByte Gaming Services (AGS) Admin Portal and go to your game namespace dashboard.
Go to Multiplayer > Matchmaking > Session Configurations. On the Session Template tab, click Add Session Template.
Fill out the new window with the configurations below for the Elimination game mode.
- Session Template Name: the unique name to identify your Session Template. Set it to unity-elimination-p2p.
- Min Players: the minimum number of players required in the session. Set it to 1.
- Max Players: the maximum number of players in the session. Set it to 4.
- Joinability: the joinability of the session. Set it to Open.
- Server: the session connection type. Set it to Peer to Peer (P2P).
Click Next until you arrive at the Summary page where you can review your session template configuration. Then, click Create.
Repeat these steps to create a new session template for Team Deathmatch by using the configuration below.
- Session Template Name: set it to unity-teamdeathmatch-p2p.
- Min Players: set it to 1.
- Max Players: set it to 8.
- Joinability: set it to Open.
- Server: set it to Peer to Peer (P2P).