Skip to content
THeTechWiz5305 edited this page Nov 5, 2024 · 20 revisions

Welcome to the MirrorVR wiki!

MirrorVR is a Mirror Plugin but for VR. It uses an edited version of the Epic Online Transport to get 100% free networking.

Installation

  1. Download the latest version of Mirror and put it into your game.

  2. Get the latest MirrorVR package and put it in your game.

  3. In your Unity Project, go to Assets/Mirror/Transports/MirrorVR. That is where the package is located.

  4. Go inside the Prefabs folder, and drag the Network Manager prefab into your scene.

    image

  5. Click on the Network Manager object, and assign the Player Transforms.

    image

  6. Now to get the actual networking working. Go to the Epic Games Dev Portal, sign in, and create an organization.

    image

  7. Scroll down and hit the blue Create Product button.

  8. Now name your product, it should be your game's name. Then, hit the blue Create button.

    image

  9. Now wait for the product to be created. Once it's done, click on your product.

    image

  10. Now, on the left-hand side of your screen, click on the Product Settings tab.

image

  1. Now towards the center of your screen, click the Clients tab.

image

  1. Now once you get this popup, hit Review & Accept. Now scroll down to the bottom to the text on the left-hand side, then on the bottom right, hit Accept.

image

image

  1. Now click the Clients tab again, and scroll past the warnings. At the right side of the screen, click the blue Add new client button.

image

image

  1. Now put the Client Name as Client, then hit the blue Add new client policy button.

image

  1. Set the client policy name as Policy, and the policy type as Peer2Peer. Then, at the bottom right of your screen hit the blue Add new client policy button.

image

  1. Now back to the client. We don't need the Trusted Server or Epic Account Service categories so we can skip those, and just hit the blue Add new client button.

image

  1. Jeez this is a long process. Next, we need to go to the Epic Account Services tab, so on the left-hand side of your screen, click the Epic Account Services tab.

image

  1. Review and accept the terms again as we did on step 11.

image

  1. Now let's create a new application. Hit the blue Create Application button.

image

  1. 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.

image

  1. Now make sure Basic Profile, Online Presence, Friends, and Country are all enabled, and hit Save Changes at the bottom.

image

  1. Now go to the Linked Clients tab.

image

  1. Select your client, and hit Save Changes.

image

  1. Now at the top left of your screen, hit the black Back to Epic Account Services button.

image

  1. Now go back to the Product Settings tab.

image

  1. Now scroll down, and you should see all of your keys.

Caution

DO NOT share your keys with ANYONE!

image

  1. Now put all of your keys into the MirrorVRManager script in Unity.

image

  1. Now we need to set up a few things with Meta, to make this secure. Make sure you have the Meta XR All-in-One SDK installed in your project.

  2. Now at the top of Unity, go to the Meta or Oculus tab, depending on what version you have, then Platform, then Edit Settings. Now a window should be open in the Inspector.

image

  1. Now depending on whether your game is already on app lab or not, your app IDs might not be filled in. Let's go ahead and fill all of it in. Hit the Create / Find your app on developer.oculus..com/manage button, and sign in when the tab opens.

image

  1. Now create an app or use an existing app, and open it.

  2. Now we have a few things to do here. On the left side of your screen, go under the Requirements tab, and hit the Data Use Checkup tab.

image

  1. You may have to do Age group self-certification first, go ahead and do that. If you have to do it, there will be a warning at the top of your screen. If you don't see it, you can go ahead and move to step 34!

  2. Now we want to make sure you have User ID and User Profile enabled, or EOS will not work correctly. Hit the add button to the right of the User ID label, let's do that first.

image

  1. Now under Usage, select Use Peer-to-Peer Networking, and then write a description about your use case, then hit Add to request.

image

  1. Now we do the same, but for User Profile.

image

  1. Now at the top right of your screen, hit the blue Submit requests button, and do the whole form thing that pops up. Then wait to move to step 38 until you are approved. It shouldn't take too long, usually, it's at most 20 minutes.

image

  1. Now that you have the Data Use Checkup stuff done, go to the Development dropdown, then the Test Users tab.

image

  1. Now at the top right of your screen, hit the green Add Test User button.

image

  1. Configure it how you want, but make sure you put your password somewhere for later, then hit Submit at the bottom.

  2. Now copy the email in the email column, paste it into the Test User Email slot, and put your password in the Test User Password slot. Don't hit login yet, because now we need to get some credentials.

image

  1. Now go back to your browser, and now go to the API tab, just above Test Users.

image

  1. Now copy the App ID, go back into Unity, paste the app ID in both slots, then hit the login button below.

Caution

DO NOT share your keys with ANYONE!

image

  1. Now one more thing in the Epic Dev Dashboard. Make sure you are still in Product Settings, and then go to the Identity Providers tab.

image

  1. Now hit the blue Add Identity Provider button.

image

  1. Make the identity provider Oculus, write a description, make the Environment Quest, and put in your App ID and App Secret back from the Meta APIs tab, then hit Save & Exit at the bottom of your screen.

Caution

DO NOT share your keys with ANYONE!

image

Clone this wiki locally