oculus-samples / Unity-LocalMultiplayerMR

Mixed Reality samples that demonstrate how to enable multiplayer
Other
35 stars 11 forks source link

Multiplayer Samples

This Repo contains samples that demonstrates how to enable Local Multiplayer in Mixed Reailty using Unity

If you are using Meta XR Core SDK v65+ and (Netcode for GameObjects or Photon Fusion 2) the majority of this code has been ported over to Multiplayer Building Blocks which provides a simpler version of this repo that demonstrates how to enable Mixed Reality Local Multiplayer

Sample Description

The sample contains 3 different Unity Projects. Where each project contains one of the following Networking Layers

In each Unity Project, the Multiplayer Sample contains the following

Repo Breakdown

colocation-package - Contains network agnostic interfaces that can be used to implement colocation

colocation-sample-fusion - Contains a Local Multiplayer Sample using Photon Fusion 1 as the networking layer

colocation-sample-ngo - Contains a Local Multiplayer Sample using Netcode for GameObjcts as the networking layer

colocation-sample-pun2 - Contains a Local Multiplayer Sample using Photon Unity Networking 2 as the networking layer

License

This codebase is available as both a sample and a template for mixed reality projects. The Oculus License applies to the SDK and supporting material. The MIT License applies to only certain, clearly marked documents. If an individual file does not indicate which license it is subject to, then the Oculus License applies.

See the CONTRIBUTING file for how to help out.