Escape Room Game - Add Meta Avatars SDK

 Add Meta Avatars SDK

I followed the course on Udemy to setup Meta Avatars with Photon / Fusion

https://www.udemy.com/course/unity-vr-meta-avatars-oculus-fusion/learn/lecture/40024280#questions/20877846

Basic Steps are to:


IMPORTANT:

I was hung up on this for hours, but to get the latest version (24.0) of Meta Avatars SDK working, you have to make sure you import the sample assets like this:


In the screenshot above it says Reimport, but that is because I already imported the samples. It would just say Import if I didn't already do that.




Escape Room Game - Add Photon

 Add Photon

Photon

Photon is a package that can be added for multiplayer games. This tool is free for small projects / independent developers. I had to create an account. The package works with a public server to sync the game across users.

Photon Website


Photon in Unity Tutorial




Escape Room Game - Create a Lobby Scene

 Create a Lobby Scene

Create a Room for the Scene


Select New Shape (or PolyShape, depending on what you are shape you want to use) in the ProBuilder Tools Window

Resize it to the size that you want

If you want to use the shape for your scene, then Flip the Normals

  • Select the Face mode icon (the far right icon at the top of the scene view)
  • Double click any face
  • In the ProBuilder window, click Flip the normals

Moving Around the Scene


Add an OVRPlayerController so I can walk around my scene. See Setup the Project for Oculus to learn how to do this.

Assets


Import the assets you want to use in your scene

If the assets are pink or magenta, 



Check all the checkboxes in the Render Pipeline Converter window



Click Initialize and Convert


Escape Room Game - Install ProGrids

 Install ProGrids

Go to Window -> Package Manager

Click the + icon with the dropdown arrow

Click Add package by name...

Enter com.unity.progrids and click Add


Once it is done being installed you will see this

The ProGrids Toolbar should show up automatically, but if it doesn't go to Tools -> ProGrids -> ProGrids Window and it will appear in your viewer

















Escape Room Game - Install ProBuilder

Install ProBuilder

Follow the steps on this page to install ProBuilder in the project

https://docs.unity3d.com/Packages/com.unity.probuilder@4.0/manual/installing.html

The document doesn't mention it, but be sure to select Packages: Unity Registry before searching for ProBuilder or else it won't find it

Once you have ProBuilder open (as per the instructions on that link), click and drag it by the tab to dock it where you want it.

Escape Room Game - Setup the Project for Occulus

 Setup the Project for Oculus


Follow this to setup my Unity Project for Oculus

Get Started with Meta Quest Development in Unity - this is a series of articles that shows you how to setup your project for the Oculus Quest. Some of the specific articles that I followed include:
After following the steps above my project was able to be built and run on the Oculus. However, I still needed to be able to move around the scene. In order to do that, I did the following:

Unity and Oculus Meta Quest - Lesson 01 Setting up Tutorial - this is a series of videos that shows how to develop for the Oculus in Unity.

Unity and Oculus Meta Quest 2 Tutorial 05 - Moving your player - this is a short video from that same series that shows you how to create an object that represents the player (OVRPlayerController) with the camera attached (OVRCameraRig) and then hook up the left and right hand controls. After this, you are able to walk around your scene and move the camera view just like you can in other Oculus games you are familiar with. I think I still need to hook this up to an object that can be seen in the game, like an avatar, or some other object so that other players can see me in a multiplayer game.



Things I did initially before I found the above series on youtube and the documentation on from Meta


Go to Edit -> Project Settings


Scroll down to the XR Plug-in Management section on the left and select the Android tab on the right (You can see the little Android robot icon)


Uncheck OpenXR and then check Oculus


Click the X in the top right of the window to save your changes and exit


Follow the steps on this page to build your project for Oculus:


After following those steps, it still didn't load for me on the Oculus. I'm not certain that the following steps fixed this for me, but after doing this (in addition to the steps above) and clicking Build and Run, then it loaded on the Oculus for me.

Go to Edit -> Project Settings -> XR Plug-In Management (Same as before)

Go to the Windows, Mac, Linux Settings tab and make sure the Oculus option was checked


Go to the Dedicated Server Settings tab and make sure the Oculus option was checked


Go to File -> Build Settings -> Build and Run (again)



Confirm the game is loaded on the Oculus

If the game did not start immediately, then you can start it yourself

On the Oculus, Go to the Applications screen

Make sure the Unknown Sources option is selected in the dropdown menu at the top right. The All option will not show your game. Only the Unknown Sources option will.

Click your game to start it.
















Escape Room Game - Publish the Initial Project

 Publish the Initial Project

Click the Publish repository button



Check the Keep this code private button and click Publish repository



Go to github and confirm the repository was published successfully













} else { }