Overview - Introduction to Session - (Unity module)
Introduction
Session is the essential part of AccelByte Gaming Services (AGS) multiplayer offerings. In this module, you will learn how to implement the basic functionalities of Session into your game, which will prepare you for features such as Party, Matchmaking, Match Session, or Custom Match multiplayer.
Prerequisites
In order to start on this module, you will need:
To have completed the following module:
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": ["SessionEssentials"],
"forceDisabledOtherModules" : true,
}
Learning objectives
At the end of this module, you will know how to implement:
- Creating a session.
- Joining a session.
- Leaving a session.
Preview
At the end of this module, your project will look like the images below and display the following logs:
[SessionEssentialsWrapper_Starter.cs] [OnCreateSessionCompleted] [Log] [116] - Successfully created game session
[SessionEssentialsWrapper_Starter.cs] [OnLeaveSessionCompleted] [Log] [162] - Successfully left the game session