Switch From Multiplay
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;
Remove references to Multiplay from project
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:
Unity (C#)
You should also unlink your project from the Unity dashboard under Edit -> Project Settings -> Services
if your game is made with Unity.
Containerize your game server
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.
Push your container on a repository
You will have to push your container on a repository. You can use Edgegap's private repository or any other option.
Create an Application on Edgegap
Now that your container is on a repository, you will have to create an Application on Edgegap. This Application will represent your game sever.
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.
With only these settings, you can now deploy your server on demand for your players!
Setting up fleets
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.
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 here.
It is higly suggested that you do not use the Autodeploy
options with these sessions, as it will interfere with the fleet settings. It is also suggested that you set up an Empty Time To Live
in order for the deployments to be deleted automatically.
Once you have a compatible app version ready, you can go on to create a Fleet 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.
Last updated
Was this helpful?