Switch From Multiplay
Last updated
Was this helpful?
Last updated
Was this helpful?
If you are looking to switch from using Unity Multiplay to Edgegap, the following simple steps will get you running in no time. Before getting started, we expect that:
You currently use Unity Multiplay;
You currently have a working game server build on Multiplay;
You already and an application on Edgegap.
The first step to switch to Edgegap is to remove the code that initializes the Unity Gaming Services for your server, which should resemble the following:
You should also unlink your project from the Unity dashboard under Edit -> Project Settings -> Services
if your game is made with Unity.
The second step towards switching to Edgegap is to containerize your game server. You can follow the following guides:
If you created a build version on the Unity Dashboard with a container image, you may need to modify your Dockerfile. Most notably, you will need to assign a game port
value of your choice to your Transport
component in the project, and expose that port in the Dockerfile.
You need to add the same port
as your Dockerfile to your app version, as well as link the image you just pushed on a repository in the Container
section. This is also where you can add some Environment Variables
specific to your app version, much like the Configuration Variables in the Build Configurations on Multiplay.
Edgegap also offers an optional feature similar to Multiplay's fleets, if that is something from before you switched to Edgegap that you would like to keep using.
You will have to push your container on a repository. You can use Edgegap's or any other option.
Now that your container is on a repository, you will have to on Edgegap. This Application will represent your game sever.
With only these settings, you can now your server on demand for your players!
Currently, our fleets are only supported with session-based applications, so when creating your app version you will need to set up either a Seat
or Match
session type, found under Advanced Settings
. You can find more information on sessions .
Once you have a compatible app version ready, you can go on to on Edgegap. Once the fleet policies and filters are set up, you can link your app version to it, then enable the fleet. This will automatically create deployments following your setup. Those deployments will be tagged with both the fleet name
and policy name
, which you can use to filter the available servers to your players.