Install the AccelByte Game SDK - Initial setup - (Unity module)
About
To integrate AccelByte Multiplayer Servers (AMS) to your game server, you need to use the AccelByte Unity SDK. The SDK contains libraries for the game server to communicate with AccelByte services. In this tutorial, you learn how to install the AccelByte Unity SDK to your project. You can check the latest AccelByte Unity SDK version from AccelByte GitHub repository.
Install the AccelByte Unity SDK using UPM
There are two ways to install AccelByte Unity SDK using Unity Package Manager (UPM), either add package by Git URL or clone the AccelByte Unity SDK to your project manually.
For WebGL support, make sure to use the AccelByte Unity SDK for Unity version 17.0.0 or later.
- Via Git URL
- Via Local Package
Open Byte Wars in Unity Editor. Then, go to Window > Package Manager.
On the new window, click on the + button and select Add package from git URL... option.
Paste the AccelByte Unity SDK for Unity GitHub repository URL below.
Then, click on the Add button to install the AccelByte Unity SDK.
Wait until the installation process is complete and you will see the AccelByte Unity SDK is displayed as AccelByte Unity SDK on the package list.
Clone the AccelByte Unity SDK project using the Git command below.
git clone https://github.com/AccelByte/accelbyte-unity-sdk
Next, open Byte Wars in Unity Editor. Then, go to Window > Package Manager.
On the new window, click on the + button and select Add package from git disk... option.
On the file manager, locate the cloned AccelByte Unity SDK project and select the
package.json
file. Then, click the Open button to install the AccelByte Unity SDK.Wait until the installation process is complete and you will see the AccelByte Unity SDK is displayed as AccelByte Unity SDK on the package list.