Getting Started
Are you stuck on where to begin? Follow this guide that will send you through the setup process FAST!
Welcome to the MirrorVR Setup! It's a long process, but it's easy if you follow along!
Make sure you have removed your old networking system from the scene before you continue. See PhotonVR to MirrorVR or FlowVR to MirrorVR for proper cleanup.
If you have any obfuscators, make sure the following namespaces are added to the skipped namespaces list:
Mirror, Mirror.VR, MetaVoiceChat, EpicTransport
Dependencies
Newtonsoft.Json
Make sure you have this installed. To install, go to
Window > (Package Management) > Package Manager, then hit the+icon in the top left, thenAdd package by name..., then type incom.unity.nuget.newtonsoft-json, and hitAddorInstall.
Unity Version
The recommended Unity version for MirrorVR is Unity 6000.3, but you should be able to use this package with no issues if you are on Unity 6000.0.38f1+.
Universal Render Pipeline
It is recommended to have URP installed before installing this package. It's not required, it's just a suggestion.
Installation
First, download the latest version of Mirror and put it into your game. Mirror is the backbone of MirrorVR and is how players communicate with each other.
Then, after Mirror is installed in your project, install EOSTransport. This is the core bridge between Mirror and EOS.
Once both are installed, get the latest MirrorVR package and put it in your game.
Go to Assets/MirrorVR in your Unity Project. That is where the package is located. Now go inside the Prefabs folder, and drag the Network Manager prefab into your scene.

Now open the Network Manager object you just dragged into the scene. Assign the Player Transforms to their values. Skip API Keys and Encryption Key for now, we will cover those in a bit.
Go right to the Settings section. Configure it however you like. See Mirror VR Manager for details.

Now, to set up Epic Online Services. If you are using Dedicated Server or PlayFab features, you still need to use Epic, as it provides a player management backend to improve your game. Head right over to the Epic Games Developer Portal, sign in, and create an organization if you don't have one already.

Once you have made your organization, hit the Create Product button.
Name your product. It should be your game name. Once done, hit the create button, then wait a bit.

Once your product has been created and it's done loading, click on it. On the left-hand side of your screen, click on the Product Settings tab.

Now click on the Clients tab.

Scroll towards the bottom, where it says Client policies. Click the blue Add new client policy button.

Name your policy whatever you want, and set Policy Type to be Peer2Peer.

At the bottom right of your screen, press the blue Add new client policy button.
Now scroll up a little to the Clients section. Click the Add new client button.

Client Name can be anything. On client policy, select the one we just created. We can skip IP allow list and redirect URL, as they aren't needed for our case.

On the bottom right of your screen, click the Add new client button.
Next, go to the Epic Account Services tab.

Hit the Create Application button.

We don't need to do anything in the Brand Settings tab, so go up to the top right of your screen, and select the Permissions tab.

Enable all permissions.

Hit Save Changes at the bottom right.
Head over to the Linked Clients tab.

Select the client we made, and then hit Save Changes.

Now in the top left, hit the Back to Epic Account Services button.
Now go back to the Product Settings tab.

Under SDK Download & Credentials, scroll to the bottom to get your API Keys.
DO NOT share these API Keys with ANYONE!

Now go back to MirrorVRManager and put these credentials in their fields.

While we are here, let's set the Encryption Key.
Go to this website to generate a 32-byte hexadecimal string we can use as the encryption key. Set the number in the lower left to 32, copy it, put it into the Encryption Key field in MirrorVRManager, and you're all set!

And the basic setup is done! See below for next steps.
If you are using Oculus or Steam, there's also a setup for those. See Meta Quest Setup or Steam Setup to do those.
Last updated