PlayFab Multiplayer Services with a Unity Game (a video tutorial)
Ever wanted to know how to get a game running on dedicated game servers? Here we show you how to set up a Unity headless server on PlayFab Multiplayer Services (PlayFab MPS) and connect a Unity game client to it which is running on a Azure PlayFab game server.
We’ll walk you through:
- Enabling Servers in PlayFab – how to enable multiplayer servers in a newly created PlayFab game and adjust the core quota to allow for server builds.
- Unity Project Setup – Use a Mirror chat example in Unity, where clients communicate through a headless server instead of peer-to-peer.
- Creating a New Build in PlayFab – Including naming the build, selecting the virtual machine (e.g. DAS v4 with two cores), and specifying the server’s operating system (Windows in this case).
- Uploading Assets and Configuring the Server – Demonstrating how to upload the Unity server assets as a zip file and set the start command for the server instance.
- Region and Server Configuration – covers selecting server regions, setting the number of standby and maximum servers, and adding necessary network ports.
- Monitoring Server Builds – adding the build and how to monitor the build process and view details like build ID, usage statistics, and the status of running servers.
- Connecting Unity Clients to the Server -Closing up with how to connect Unity clients to the PlayFab server using the build ID and verifies communication between multiple clients through the server.