Compatible with Unity 2021.3 LTS and 2022.3 LTS.
Amazon GameLift is a fully managed service that lets game developers to manage and scale dedicated game servers for session-based multiplayer games. The Amazon GameLift plugin for Unity provides tools that makes it quicker and easier to set up your Unity project for hosting on Amazon GameLift. Once the plugin is installed, you can access the plugin from within the Unity editor and start using it to integrate Amazon GameLift functionality into your client and server code. The plugin contains functionality to automatically bootstrap your game runtime environment to the AWS Cloud, fully test your game server integration with Amazon GameLift locally, and deploy your game servers on Amazon GameLift. For more information about using the plugin for Unity, see the Amazon GameLift plugin for Unity guide.
You can use built-in templates to deploy your game for the following common scenarios.
Each scenario uses an AWS CloudFormation template to deploy a resource stack for your game server solution. You can view and manage your resource stacks in the AWS Management Console for CloudFormation.
Complete the following steps to install and enable the plugin for your multiplayer game project. For more details, see the Amazon GameLift documentation.
Install the Amazon GameLift Plugin for Unity.
com.amazonaws.gamelift-<version>.tgz
file within the downloaded release zip or follow the contribution guide to build the tarball yourself.Window > Package Manager
.+ > Add package from tarball...
and select the above tarball.Install the Amazon GameLift C# Server SDK for Unity plugin (aka. lightweight Unity plugin).
GameLift-CSharp-ServerSDK-UnityPlugin-<version>.zip
file within the downloaded release zip or download it from Amazon GameLift's Getting Started.Edit > Project Settings > Package Manager
.Scoped Registries
, click on the +
button and enter the values for the UnityNuGet scoped registry:
Name: Unity NuGet
Url: https://unitynuget-registry.azurewebsites.net
Scope(s): org.nuget
Window > Package Manager
.+ > Add package from tarball...
and select the tarball within the unzipped folder, com.amazonaws.gameliftserver.sdk-<version>.tgz
.(Optional) Import the sample project and configure the build settings.
Amazon GameLift > Sample Game > Import Sample Game
and import all assets.Amazon GameLift > Sample Game > Initialize Settings
.C:\Program Files\Unity\Hub\Editor\<version>\Editor\
) to the Windows PATH environment variable.amazon-gamelift-plugin-unity
repository from GitHub.Scripts~\windows\release.ps1 -Sdk <version>
in PowerShell to build the plugin and dependent libraries (only needed once).package.json
located in the plugin's root folder.Window > General > Test Runner
.Run Scripts~\windows\release.ps1 -Sdk <version>
to clean, build, export, and package the plugin with the server SDK in a single command.
Alternatively:
Scripts~\windows\clean.ps1
to delete all dlls and temp files (If you want to build faster, you can comment out .clean-download-files
execution).Scripts~\windows\build.ps1
to build dlls and sample game.Scripts~\windows\export.ps1 -Sdk <version>
to export the plugin into a tarball (.tgz) and package it with the server SDK in the project root folder.Follow instructions in Unity Docs to enable your project for testing:
<project>/Packages/manifest.json
).com.amazonaws.gamelift
is present as a dependency. "testables": [ "com.amazonaws.gamelift" ]
After enabling testing, the project tests can be run via Unity Test Runner.
The Amazon GameLift Plug-in for Unity is compatible only with officially supported versions of Unity 2021.3 LTS and 2022.3 LTS for Windows and Mac OS.
An additional error log file related to the Unity game project can be found in the following location: logs/amazon-gamelift-plugin-logs[YYYYMMDD].txt
. Note that the log file is created once a day.