unity-relay-mirror-sample

Unity Mirror Sample project! This project demonstrates how to use Unity Transport Package (UTP) and Relay service with the Mirror Networking API.

OTHER License

Stars
30
Committers
1

Unity Relay Mirror Sample

The Unity Relay Mirror Sample demonstrates how to use the Unity Transport Package, the Unity Relay service, and the Mirror Networking library together.

  • The Unity Transport Package is a low-level networking library that provides a connection-based abstraction layer over UDP sockets with optional functionality such as reliability, ordering, and fragmentation.
  • Relay is a Unity service that facilitates securely connecting players by using a join code style workflow without the need for dedicated game servers or peer-to-peer communication.
  • The Mirror Networking library is a high-level networking library for the Unity Platform.

The Unity Relay documentation contains additional information on the usage of this sample.

Requirements

The sample has the following requirements:

Installation

If you would like to use the code from this sample in your own project, please perform the following steps:

  1. Install the latest version of Mirror.
  2. Install the latest version of the com.unity.jobs package using the Unity Package Manager.
  3. Install the latest version of the com.unity.services.relay package using the Unity Package Manager.
  4. Copy the Assets/UTPTransport folder from this sample into the Assets/ directory of your own project.

Community and Feedback

The Unity Relay Mirror Sample is an open-source project and we encourage and welcome contributions. If you wish to contribute, be sure to review our contribution guidelines.