A Dedicated Server Sample built in Unity, It uses Agones Rest SDK.
This sample is working on
Unity Editor: Unity 2018.4.1f1
OS: Windows 10 Pro
Docker: Version 2.0.0.3 (31259)
Minikube: v1.1.0
and Using Powershell
- Docker for Windows
- Minikube
- Open
AgonesUnityServerSamplewith UnityEditor. - Select
AgonesEchoSamplescene. - Play!
- An Echo Client and a Local Echo Server will run.
There are a few steps.
-
Please see Agones Document
- Setting up a Minikube cluster
- Enabling creation of RBAC resources
- Installing Agones
Or you can use
makecommand insteadmake start-agones make install-agones
- Open
AgonesUnityServerSamplewith UnityEditor. - Hit a
Build Tool/Build Servermenu item in the menu bar.- The Builds are created in a
Builds/ServerFolder.
- The Builds are created in a
docker build -t agones-unity-server-sample:1.0 .
- Use local docker images on Minikube
& minikube docker-env | Invoke-Expression - Now, you can run a Unity Server on Agones with the following command!
kubectl create -f gameserver.yaml
Thanks!!!