|
Kanda Foundation 0.8.0
|
We utilise Unity Cloud as the default service provider for multiplayer integrations such as dedicated server hosting with Multiplay and voice chat with Vivox.
These services are primarily set up via the Unity Editor and the Unity Cloud dashboard:
Linking your project to Unity Cloud enables access to various Unity services, including multiplayer hosting.
Project Settings > Services.Unity Project ID, click the button to link this project to Unity Cloud.A environment allows you to safely test new server builds and service configurations before deploying to production.
Project Settings > Services > Environments.staging environment doesn't exist, click Manage environments to add it in Unity Cloud.staging from the dropdown to set it as the active environment.development environment.Creating a dedicated server build is a prerequisite for setting up Game Server Hosting.
Kanda Sdk > Distribution > To Unity Game Server Hosting....To publish builds, you must have a service account and an associated key. These can be generated from the Unity cloud dashboard under Administration > Service accounts.
First time setup: To upload builds, you need a build ID from Unity Game Server Hosting. For your project's first ever server build, you may want to manually create a build first, which you can then continue to step 4 below. To create a build manually:
A Game Server Hosting (GSH) build is required to deploy your game server to Unity's cloud infrastructure.
Game Server Hosting and select Builds.Create build and set the following configuration:MainLinuxDirect file uploadNext and upload initial dedicated server build files.Next and optionally select a name for the initial build version.FinishBuild configurations define how your game server should be run and scaled in the cloud.
Game Server Hosting and select Build Configurations.Create build configuration and set the following configuration:MainMainKandaServer.x86_64)SQPTrue-port $$port$$ -queryport $$query_port$$ -logFile $$log_dir$$/Engine.logNext and optionally set any custom configuration variables you need.Finish.A fleet is a group of server instances that run your game server build.
Game Server Hosting and select Fleets.Create fleet and set the following configuration:MainLinuxMainNext and set the following configuration:Europe)0 for minimal cost or 1 to prevent cold starts10)Next and set the following configuration:4Finish.The scaling and density settings for the fleet may be tweaked later using the GSH dashboard.
To configure the Unity Editor and Kanda Cloud to interact with Unity Services APIs, you need a Service Account.
Create one following Unity Service Account documentation, ensuring it has the following roles:
The Kanda Cloud team will need various information about your Unity Services setup to configure cloud integrations. Ask the team for the most up-to-date information. At the time of writing, the information required is: