/Unity-Decommissioned

Unity project for "Decommissioned A VR Social Deduction Showcase" on Meta Quest

Primary LanguageC#OtherNOASSERTION

Decommissioned Banner

Decommissioned

Decommissioned was built to demonstrate how to use the Oculus Integration SDK, the Meta Interaction SDK, and the Meta Avatars SDK to create a social gaming experience in VR.

This codebase is available both as a reference and as a template for multiplayer VR games. 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.

This project was built using the Unity engine with Photon Realtime as the transport layer and Unity Netcode for GameObjects.

You can play it on Meta Quest through App Lab.

Project Description

This project is an application for the Meta Quest devices that demonstrates a social deduction game that can be played with friends or strangers. It shows how to integrate connection between users joining random games or specific private rooms, and how to invite friends to specific matches using the Oculus Platform API.

Meta Avatars are integrated for players to represent their VR persona and Photon Voice voice chat for easy communication. The game is rendered using Application SpaceWarp to keep a stable framerate.

The project also contains the following reusable packages:

More information can be found in the Documentation section of this project.

How to run the project in Unity

  1. Configure the project with Meta Quest and Photon

  2. Make sure you're using Unity 2021.3.19f1 or newer.

  3. Load the Assets/Decommissioned/Scenes/Startup scene.

  4. There are two ways of testing in the editor:

    Quest Link
    • Enable Quest Link:
      • Put on your headset and navigate to "Quick Settings"; select "Quest Link" (or "Quest Air Link" if using Air Link).
      • Select your desktop from the list and then select, "Launch". This will launch the Quest Link app, allowing you to control your desktop from your headset.
    • With the headset on, select "Desktop" from the control panel in front of you. You should be able to see your desktop in VR!
    • Navigate to Unity and press "Play" - the application should launch on your headset automatically.
    XR FPS Simulator
    • In Unity, press "Play" and enjoy the simulated XR controls!
    • Review the XR FPS Simulator documentation for more information.
      • Note: The mouse is captured by the simulator when in play mode. In order to otherwise use the mouse in-game (such as to interact with menus), hold Left Alt.

Dependencies

This project makes use of the following plugins and software:

The following is required to test this project within Unity:


Getting The Code

First, ensure you have Git LFS installed by running this command:

git lfs install

Then, clone this repo using the "Code" button above, or this command:

git clone https://github.com/oculus-samples/Unity-Decommissioned.git

Where are the Meta Avatar SDK and Photon packages?

In order to keep the project organized, the Meta Avatars SDK and Photon Voice 2 packages are stored in the Packages folder. To update them, import their updated Asset Store packages, then copy them into their respective Packages folders.

The Photon Voice 2 package is released under the License Agreement for Exit Games Photon.

Also, we are using the Ultimate GloveBall fork of Photon Realtime for Netcode.