-
Notifications
You must be signed in to change notification settings - Fork 0
Home
MirrorVR is a Mirror Plugin but for VR. It uses an edited version of the Epic Online Transport to get 100% free networking.
-
Download the latest version of Mirror and put it into your game.
-
Get the latest MirrorVR package and put it in your game.
-
In your Unity Project, go to
Assets/Mirror/Transports/MirrorVR
. That is where the package is located. -
Go inside the
Prefabs
folder, and drag the Network Manager prefab into your scene. -
Click on the Network Manager object, and assign the Player Transforms.
-
Now to get the actual networking working. Go to the Epic Games Dev Portal, sign in, and create an organization.
-
Scroll down and hit the blue
Create Product
button. -
Now name your product, it should be your game's name. Then, hit the blue
Create
button. -
Now wait for the product to be created. Once it's done, click on your product.
-
Now, on the left-hand side of your screen, click on the
Product Settings
tab.
- Now towards the center of your screen, click the
Clients
tab.
- 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, hitAccept
.
- Now click the
Clients
tab again, and scroll past the warnings. At the right side of the screen, click the blueAdd new client
button.
- Now put the Client Name as
Client
, then hit the blueAdd new client policy
button.
- Set the client policy name as
Policy
, and the policy type asPeer2Peer
. Then, at the bottom right of your screen hit the blueAdd new client policy
button.
- Now back to the client. We don't need the
Trusted Server
orEpic Account Service
categories so we can skip those, and just hit the blueAdd new client
button.
- 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 theEpic Account Services
tab.
- Review and accept the terms again as we did on step 11.
- Now let's create a new application. Hit the blue
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 thePermissions
tab.
- Now make sure
Basic Profile
,Online Presence
,Friends
, andCountry
are all enabled, and hitSave Changes
at the bottom.
- Now go to the
Linked Clients
tab.
- Select your client, and hit
Save Changes
.
- Now at the top left of your screen, hit the black
Back to Epic Account Services
button.
- Now go back to the
Product Settings
tab.
- Now scroll down, and you should see all of your keys.
Caution
DO NOT share your keys with ANYONE!
- Now put all of your keys into the
MirrorVRManager
script in Unity.
-
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.
-
Now at the top of Unity, go to the
Meta
orOculus
tab, depending on what version you have, thenPlatform
, thenEdit Settings
. Now a window should be open in the Inspector.
- 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.
-
Now create an app or use an existing app, and open it.
-
Now we have a few things to do here. On the left side of your screen, go under the
Requirements
tab, and hit theData Use Checkup tab.
-
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!
-
Now we want to make sure you have
User ID
andUser Profile
enabled, or EOS will not work correctly. Hit the add button to the right of theUser ID
label, let's do that first.
- Now under Usage, select
Use Peer-to-Peer Networking
, and then write a description about your use case, then hitAdd to request
.
- Now we do the same, but for
User Profile
.
- 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.
- Now that you have the Data Use Checkup stuff done, go to the
Development
dropdown, then theTest Users
tab.
- Now at the top right of your screen, hit the green
Add Test User
button.
-
Configure it how you want, but make sure you put your password somewhere for later, then hit
Submit
at the bottom. -
Now copy the email in the email column, paste it into the
Test User Email
slot, and put your password in theTest User Password
slot. Don't hit login yet, because now we need to get some credentials.
- Now go back to your browser, and now go to the
API
tab, just aboveTest Users
.
- 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!
- Now one more thing in the Epic Dev Dashboard. Make sure you are still in
Product Settings
, and then go to theIdentity Providers
tab.
- Now hit the blue
Add Identity Provider
button.
- Make the identity provider
Oculus
, write a description, make the EnvironmentQuest
, and put in your App ID and App Secret back from the Meta APIs tab, then hitSave & Exit
at the bottom of your screen.
Caution
DO NOT share your keys with ANYONE!