> For the complete documentation index, see [llms.txt](https://mindcodeinteractive.gitbook.io/easy-build-system/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mindcodeinteractive.gitbook.io/easy-build-system/learning/beginner-guides/vr-xr-setup-guide.md).

# VR/XR Setup Guide

This guide walks you through setting up the building system for VR/XR.

***

### Enable Developer Mode

If you're using a Meta Quest headset, enable Developer Mode on your device:

1. Open the Meta Quest app on your phone.
2. Go to **Settings > Developer**.
3. Enable **Developer Mode**.
4. Restart your headset.

For other headsets (Valve, HTC Vive), developer mode is enabled by default in SteamVR.

### Install XR Plugin Managmeent Package

Open `Window > Package Manager` and install:

**XR Plugin Management**: the framework that manages XR device plugins.

### Configure XR Plugin Management

Go to `Edit > Project Settings > XR Plug-in Management`.

Pick your device plugin:

* **Oculus XR Plugin** for Meta Quest and Rift.
* **OpenXR Plugin** for cross-platform VR (SteamVR, Quest via OpenXR, WMR).

For PC VR, open the Standalone tab and enable **Oculus** or **OpenXR**. For Quest builds, switch to the Android tab and enable **Oculus** or **OpenXR**.

If using OpenXR, click the settings gear and add an Interaction Profile for your controllers. For example, "Oculus Touch Controller Profile".

Make sure **Initialize XR on Startup** is checked.

<figure><img src="/files/MHwnZzusV0jCe5nmufbK" alt="" width="563"><figcaption></figcaption></figure>

### Install XR Interaction Toolkit Package

Open `Window > Package Manager` and install:

**XR Interaction Toolkit**: the input and interaction layer used by the VR sample scene.

<figure><img src="/files/D0dMtlRA3NludPEU6MvK" alt=""><figcaption></figcaption></figure>

### Configure Build Settings

For Meta Quest standalone builds:

1. Go to **File > Build Settings**.
2. Switch platform to **Android**.
3. Set **Scripting Backend** to **IL2CPP** and target **ARM64**.

For PC VR, keep the platform on **Standalone**.

### Open the VR Demo Scene

Open the VR sample scene from the Hub Manager's Samples tab. Or find it directly under `Mind Code Interactive/Easy Build System/Packages/Samples/`.

Connect your headset, enter Play Mode, and try building.

<figure><img src="/files/qSbV7qny6hTjHwupZ8Mi" alt=""><figcaption></figcaption></figure>

### What's Next

You now have a working VR setup.\
Check out the [Beginner Guides](/easy-build-system/learning/beginner-guides.md) for step-by-step walkthroughs of the building components.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://mindcodeinteractive.gitbook.io/easy-build-system/learning/beginner-guides/vr-xr-setup-guide.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
