Develop
Develop
Select your platform

Set up Unity for VR development

Updated: Sep 16, 2025
Learn how to set up and configure your Unity 3D development environment to build VR apps for Meta Quest headsets. This tutorial provides setup instructions for the following components:
  • XR provider: Enables Unity to interface with Meta Quest devices and manages device tracking, input, and rendering.
  • Meta XR Core SDK: Provides tools and components to optimize and enhance VR development for Meta devices.
  • Project Setup Tool: Manages settings and dependencies for your Unity project.
If you're new to Unity development on Quest, check out the Hello World guide to create your first VR app.

Prerequisites

Before starting this tutorial, ensure you have the following:
Hardware requirements
  • Development machine running one of the following:
    • Windows 10+ (64-bit)
    • macOS Sierra 10.10+ (x86 or ARM)
Software requirements
  • Unity Editor 2022.3.15f1 or later (6.1 or later recommended)
Account requirements

Add the Android Build Support module

Meta Quest devices run on Android OS and require the Unity Android Build Support module to build and deploy applications. Follow the installation steps below to add the module and required components:
  1. Open Unity Hub.
  2. Click Installs in the left navigation bar, which displays your Unity Editor versions.
  3. If the pane is empty, click Install Editor and choose a compatible version. Meta Quest devices require 2022.3.15f1 or later (6.1 or later recommended). Click Install to start the installation process.
  4. When complete, click Installs from the left navigation bar to confirm.
  5. Next, select Manage > Add modules from the menu next to the Unity installation.
  6. Select the following components and then click Install:
    • Android Build Support
    • OpenJDK
    • Android SDK & NDK Tools

Create a Unity project

Follow the steps below to create a new 3D Unity project in Unity Hub:
  1. Select Projects in the left navigation bar, then click New project.
    Create new project
  2. Select Unity Editor version 6.1 or later.
  3. Select the Universal 3D template, an empty Unity 3D project built on the Universal Render Pipeline (URP).
  4. Enter your project name, a save location, and a Unity organization.
  5. Click Create project.
    Click Create project

Set the build platform

  1. In the Unity editor menu, select File > Build Profiles.
  2. Under Platforms, select Meta Quest and click Enable Platform. If you already installed the profile, click the Switch Platform button.
    Select Meta Quest platform
  3. If prompted to install com.unity.xr.openxr, click Install.
Unity versions prior to 6.1
If the Meta Quest platform is absent from your version of Unity, select the Android build platform.
For more information about Unity build settings, see Build Settings Overview.

Install an XR provider plugin

The XR provider plugin lets Unity support XR devices, including headsets. Choose the provider that supports your project’s requirements.
The following provider plugins support Meta Quest devices:
  • Unity OpenXR Plugin (recommended)
    • Recommended Version: 1.15.1
    • Requires Unity 6 or later, Meta XR SDKs v74 or later.
  • Oculus XR Plugin (legacy)
    • Recommended Version: 4.5.1
    • Requires Unity 2022 or later, Meta XR SDKs v73 or earlier.
Note: New platform features will not be added to the Oculus XR Plugin, and features released in Meta XR SDK versions v74+ might not be compatible with the Oculus XR Plugin. The Unity OpenXR Plugin is the recommended provider plugin going forward. If you are developing with SDKs on v74+, use Unity 6+ with the Unity OpenXR Plugin instead.
For more information about XR vendor plugins, see XR Plugin Management for Meta Quest.

Option A: Install the Unity OpenXR Plugin

All new projects should install the Unity OpenXR Plugin to get the benefit of all of the latest features and optimizations.
To install the OpenXR provider plugin:
  1. Open any 3D project in the Unity Editor 2022.3.15f1 or later (6.1 or later recommended)
  2. From the top menu of the Unity Editor, navigate to Edit > Project Settings to open the Project Settings window.
  3. Select XR Plug-in Management in the Project Settings window.
  4. If XR Plugin Management is not installed, select Install XR Plugin Management.
  5. In the Windows, Mac, Linux settings tab, select OpenXR.
  6. In the Android, Meta Quest settings tab, select OpenXR.
  7. Close the Project Settings window.
  8. From the top menu of the Unity Editor, navigate to Window > Package Management > Package Manager to open the Unity Package Manager window.
  9. On the left-hand navigation menu, make sure In Project is highlighted. Underneath Search in Project, expand the Packages - Unity dropdown.
  10. In the list of packages in the left menu, verify that there is a check mark beside the Unity OpenXR Plugin, indicating that the package is installed.
Note: Installing an XR plugin does not download and import the Meta XR SDKs in to your project. Make sure you add the Meta XR SDKs you need from the Unity Asset Store.
For more information on how to setup the OpenXR Plugin, see the Unity OpenXR Plugin Settings documentation.

Option B: Install the Oculus XR Plugin

Note: New platform features will not be added to the Oculus XR Plugin, and features released in Meta XR SDK versions v74+ might not be compatible with the Oculus XR Plugin. The Unity OpenXR Plugin is the recommended provider plugin going forward. If you are developing with SDKs on v74+, use Unity 6+ with the Unity OpenXR Plugin instead.
For projects built on Unity versions < 6 that use Meta XR SDKs < v74, install the Oculus XR Plugin.
To install the Oculus XR provider plugin:
  1. Open any 3D project in the Unity Editor (version 2022 or 2023).
  2. From the top menu of the Unity Editor, navigate to Edit > Project Settings to open the Project Settings window.
  3. Select XR Plug-in Management in the Project Settings window.
  4. If XR Plugin Management is not installed, select Install XR Plugin Management.
  5. In the Windows, Mac, Linux settings tab, select Oculus.
  6. In the Android settings tab, select Oculus.
  7. Close the Project Settings window.
  8. From the top menu of the Unity Editor, navigate to Window > Package Manager to open the Unity Package Manager window.
    Note: For Windows, Window > Package Management > Package Manager
  9. At the top left of the window, expand the Packages - Unity dropdown.
  10. In the list of packages in the left menu, verify that there is a check mark beside the Oculus plugin, indicating that the package is installed.
Note: Installing an XR plugin does not download and import the Meta XR SDKs in to your project. Make sure you add the Meta XR SDKs you need from the Unity Asset Store.

Import the Meta XR Core SDK

Meta develops and maintains several Unity SDKs for VR and extended reality (XR) app development. If you are just getting started, add the Meta XR Core SDK from the Unity Asset Store. This SDK includes the most essential components and assets for development.
Follow these steps to add the Meta XR Core SDK to your project:
  1. Go to the Meta Quest Unity Asset Store, and sign in using your Unity credentials.
  2. Select or navigate to Meta XR Core SDK.
  3. Click Add to My Assets to add the package to your Unity account’s assets.
  4. Click Open in Unity to open the Package Manager window in the Unity Editor.
  5. Enter your Unity credentials if prompted.
  6. In the Package Manager window, in the upper-right side of the window, click Install to install the SDK.
  7. If prompted, click Enable for the Meta XR Feature Set to ensure the utilities function as expected.
  8. If Unity prompts you to restart the Unity Editor, select Restart Editor.
For more details about Meta XR packages, see Meta XR Packages reference page.

Confirm Open XR features are enabled

You can enable and disable specific Open XR features at build time for testing your app.
For this project, make sure you enable the following features to access them on your Meta Quest headset:
  • Meta XR Feature
  • Meta XR Foveation
  • Meta XR Subsampled Layout
To locate and enable these features:
  1. Navigate to Project Settings > XR Plug-In Management > OpenXR and select the Android tab.
  2. Select Meta XR in the OpenXR Feature Groups section to display the list of Meta XR features.

Manage project dependencies using the Project Setup Tool

The Project Setup Tool is a Unity Editor extension that quickly configures and resolves dependency issues in Unity projects for Meta VR development. Follow the steps below to fix dependency issues in your project:
  1. Select Meta > Tools > Project Setup Tool in the Unity Editor. Alternatively, click Meta XR Tools at the top of the Unity Editor, and select Project Setup Tool from the pop-up menu.
  2. To resolve all outstanding issues for the Android platform, click Fix All.
  3. To apply all recommended settings for the Android platform, click Apply All.
For more details about the Project Setup Tool, see the Project Setup Tool reference page.
For more information about configuring Unity projects manually, see Project Configuration Overview.

Learn more

To learn more about project setup, see the following resources:

Next steps

After you set up your Unity 3D development environment and project, see Set up your device to learn how to connect your headset.
Did you find this page helpful?