Solutions overview
Unity provides a range of sample projects and examples to help you implement features and end-to-end solutions.
Sample projects
The following samples can help you implement UGS features in your games.
Sample project | Description |
---|---|
UGS use cases project | Contains a collection of samples designed to demonstrate how to use multiple UGS products in a single Unity project to solve common game development challenges. |
Friends sample | Demonstrates how to implement the Friends service to create a more social experience for your game's users. |
Unity Mirror Sample | Demonstrates how to use Relay and the Unity Transport Package (UTP) with the Mirror Networking API. |
Block Your Friends game sample | A sample multiplayer game which incorporates various UGS products. |
Boss Room game sample | A fully functional co-op multiplayer RPG made with Unity Netcode and the Relay, Lobby and Authentication services. |
Cloud Code trigger samples | A set of samples that allow you to use Cloud Code triggers to automate functionality from other services such as Authentication, Cloud Save, Leaderboards, and Economy. |
Multiplayer chess sample | Demonstrates how to implement a server-authoritative asynchronous multiplayer game using UGS, without needing a dedicated game server. This uses Cloud Code to provide server authority, Leaderboards to rank players, and Lobby to provide a game lobby experience. |
Megacity Metro sample | Download Megacity Metro, a fully functional, large-scale, cross-platform competitive multiplayer shooter. This demo uses Netcode for Entities, Multiplay Hosting, Matchmaker, Authentication, and Vivox Voice Chat, and is intended for advanced users. |
Feature integration
Various Unity Gaming Services work well together to let you create advanced solutions for your users.
The following table gives an overview of use cases that use multiple UGS features to achieve a larger goal.
Use case | Description |
---|---|
Authentication use cases | Overview of services you can use with Authentication. |
Authentication for Lobby | How to set up Authentication for Lobby. |
Authentication for Matchmaker | How to set up Authentication for Relay. |
Cloud Code integration | How to integrate Cloud Code with other services. |
Using Cloud Code with Remote Config | How to use Cloud Code with Remote Config. |
Creating Game Overrides with CCD and Remote Config | How to create Game Overrides with CCD and Remote Config. |
Economy Game Overrides with Cloud Code | How to create Game Overrides for Economy with Cloud Code. |
Game Overrides use cases | Overview of example scenarios for using Game Overrides. |
Reducing ad frequency for engaged players | How to use Game Overrides to tailor the in-game experience for users. |
Integrate Lobby with Relay | How to integrate Lobby with Relay. |
Integrate Lobby with Vivox | How to integrate Lobby with Vivox. |
Party matchmaking | How to create parties with matchmaking, and share data using Lobby. |
Use Relay with Netcode for GameObjects | How to use Relay with Netcode. |
Use Relay with UTP | How to use Relay with the Unity Transport Package. |