Unity XR Development: A Practical OpenXR Guide
What you need before you start
Unity builds XR applications with the same editor used for flat games. There is no separate XR fork and no paid add-on required to reach a headset. The current release is Unity 6.6 (6000.6), the LTS line is Unity 6.3 (6000.3), and Unity 6.0 remains supported, so version selection matters more than it used to.
The practical checklist:
- Unity 6.3 LTS or newer. The XR Interaction Toolkit 3.5.1 requires Unity 6000.0 LTS as its minimum.
- The OpenXR Plugin, at version 1.17, plus the XR Interaction Toolkit for interaction and locomotion.
- For standalone headsets: Android Build Support with the OpenJDK, SDK and NDK modules that ship with the editor.
- XR Hands if you want optical hand tracking, and AR Foundation plus the Android XR package if you are targeting Google’s platform.
- An Apple Silicon Mac with Xcode 16 or newer only if you are building for visionOS.
A quick way to start is the VR or MR template in the Unity Hub, which creates a project with the XR packages already added. Even then you still have to configure provider plug-ins, as described below.
How Unity’s XR stack fits together
Unity splits XR into three layers, and most setup confusion comes from mixing them up.
The first is XR Plug-in Management, found under Edit > Project Settings > XR Plug-in Management. This is where you enable a provider plug-in per build target and run project validation, which flags missing settings before you spend twenty minutes on a build that cannot start.
The second is the provider plug-in itself. For Quest, SteamVR, Pico and most PC headsets that is the OpenXR Plugin. Android XR is different: it uses a separate package, Unity OpenXR: Android XR 1.0.2, which depends on both AR Foundation and the OpenXR plug-in. visionOS has its own Apple visionOS XR Plugin. OpenXR is the Khronos cross-platform XR API that all of these ultimately speak, which is why a single project can reach several devices without a per-vendor code path.
The third is the XR Interaction Toolkit, usually shortened to XRI. It sits above the provider and supplies the runtime pieces: the XR Origin rig, interactors, interactables, locomotion providers and UI input. XRI 3.5.1 also raised its minimum editor to Unity 6000.0 LTS, so it no longer targets 2022.3.
Configure the project for Meta Quest
Enable OpenXR in the Android tab of XR Plug-in Management, add the interaction profiles you need, then enable the Meta Quest Support feature under OpenXR Feature Groups. That feature is what makes Unity produce an installable APK for the Quest family, and the documentation recommends the Oculus Touch Controller Profile because every Quest controller supports it. The Touch Plus and Touch Pro profiles can be added alongside it for their extra inputs.
Unity 6 can configure most of the Android side for you. When you use the Meta Quest build profile, Unity overrides a set of player settings with values that are known to work:
- Graphics API: Vulkan.
- Minimum Android API level: 29 (Android 10).
- Target API level: 32 (Android 12L).
- Scripting backend: IL2CPP, with ARM64 as the only architecture.
- Stereo rendering path: Instancing.
Getting these by hand is possible, but the build profile also enables shader optimisations for the platform, which is the part people forget.
Build the rig and wire input
An XR scene in Unity is an XR Origin containing a camera offset, the main camera and one controller or hand object per side, plus an XR Interaction Manager that keeps track of interactors and interactables. The Starter Assets sample ships a prefab with this already assembled, and adding it by hand is mostly a matter of parenting the right objects in the right order.
Input is where the modern setup differs from older tutorials. XRI 3.x reads controllers through the Input System, using the action based controller components and an input actions asset. The XRI Default Input Actions asset is a reasonable starting point, and it already uses composites so that one action can be bound across multiple controller profiles. Bind a single action to several controls rather than writing a per-controller script.
For hand tracking, add the XR Hands package and let the input modality manager switch between controllers and hands as the player puts one down. Hand tracking is still the least predictable input path in XR, and recent work such as a wrist-worn sensor that outperforms camera based hand tracking shows how much room there is left in that problem.
You can test interaction without hardware. The XR Interaction Simulator ships as a package sample, and in XRI 3.5 it drives the XR Origin indirectly through simulated input rather than moving the camera, so the same code path runs as in a headset. Version 3.5 added simulated hand poses (idle, poke, pinch, grab) on top of XR Hands 1.8.0, and changed the default mode to point and click with the mouse. The older Mock HMD provider only simulates the display, so it will not exercise your input bindings.
Locomotion in XRI 3.x
Locomotion was reworked rather than extended. The current architecture is a Locomotion Mediator that grants access to an XR Body Transformer, which queues and applies body transformations on Update. The providers sit on top: teleportation, snap turn, continuous turn, continuous move, grab move, two handed grab move and climb.
The practical consequence is that an older tutorial showing a locomotion system wired straight to a character controller will not match what you see in the inspector. Providers now request access from the mediator, and the mediator decides whether the request is legal at that moment, which is how XRI avoids two systems fighting over the same pose in the same frame.
Where the frames actually go
XR performance on standalone hardware is a fill rate and bandwidth problem, not a polygon problem. Four settings pay for themselves.
Single pass instanced stereo. It is the default on the Quest build profile. If you write custom shaders, they need the instancing macros, or one eye will render incorrectly. The same applies to Shader Graph on the Built-in Render Pipeline, which does not support single pass instancing at all, another reason to be on URP.
Foveated rendering. Enable the Foveated Rendering feature in OpenXR settings and set its method to Foveated rendering (SRP API). That path needs Unity 6 or newer, OpenXR 1.11 or newer and URP, and it works across vendors instead of being Quest only. Strength starts at off, so you must also set the level at runtime. Gaze-based foveation additionally needs eye tracking, which the eye tracking pipeline explains from sensor to gaze vector.
Multiview Render Regions. This is a Meta Quest Support setting that stops the GPU shading the parts of the eye buffer that fall outside the visible field of view. Since Unity 6.2 the options are None, All Passes and Final Pass. It is close to free performance on Quest and easy to leave disabled by accident.
Space Warp and buffer discards. The Meta Quest Support panel also exposes Symmetric Projection, Optimize Buffer Discards (which makes 4x MSAA textures memoryless on Vulkan) and the motion vector format used by Space Warp. These are small switches with real frame time attached.
One platform note: the Built-in Render Pipeline is deprecated from Unity 6.5 onward and will be made obsolete in a future release. New XR projects should start on URP, which is also the only pipeline that supports the SRP foveation API and visionOS stereo render targets.
Android XR and visionOS
Android XR is not a build target inside the OpenXR plug-in. It comes from the separate Unity OpenXR: Android XR package, which implements session management, camera access, plane detection, face tracking, ray casts, anchors and occlusion on top of AR Foundation. Google’s runtime also behaves differently from Quest for hand tracking, foveated rendering, multiview render regions, display refresh rate control and Space Warp, so a project that ships on both platforms needs those paths tested separately. Android XR itself is covered in more depth here, including who ships hardware for it.
visionOS is the most constrained target. PolySpatial 3.2 requires Unity 6.3 or newer, an Apple Silicon Mac, Xcode 16 beta 1 or newer and the visionOS 2.0 SDK, and it is available only on Unity Pro, Enterprise and Industry licences. Projects must use linear colour space, URP is recommended because Metal foveated rendering and stereo render targets depend on it, and custom shaders are limited to a ShaderGraph subset that Unity converts to MaterialX. You choose an app mode per project: Metal rendering with Compositor Services, RealityKit with PolySpatial, a hybrid of the two, or a windowed app.
Where Unity ends and vendor SDKs begin
The honest limits are worth knowing before you commit a team.
OpenXR covers tracking, input, composition and a growing set of extensions, but vendor features still arrive through vendor packages. Meta’s own foveated rendering API is the clearest example: it works on Quest with the Built-in Render Pipeline, while Unity’s SRP API is cross-vendor but URP only. Post-processing and camera stacking create intermediate render targets, which the Meta path does not tolerate for foveation.
visionOS constrains rendering by design, because RealityKit draws the frame in the PolySpatial app modes and Unity only simulates the scene. Anything that depends on a low-level shading language will not survive that translation.
And profiling is not optional. A scene that holds frame rate in the editor can miss on a Quest 3S with a warm battery, and the performance settings feature in OpenXR exists precisely so an app can signal the runtime, for example by dropping to a lower performance level during a loading screen.
If you are still choosing an engine, the Unity, Unreal and Godot comparison covers licensing, platform reach and renderer headroom. The same pipeline in Godot is documented in the Godot XR development guide, which is worth reading even if you stay on Unity, because the OpenXR concepts map almost one to one.
Sources
- Unity Manual: documentation versions, Unity 6.6 current and 6.3 LTS
- Unity Manual 6.6: XR project setup, package and plug-in overview
- Unity Manual 6.6: XR Plug-in Management location and purpose
- Unity Manual 6.6: Develop for Meta XR, supported Quest devices and Meta VR Glasses
- Unity Manual 6.6: Meta Quest build profile default settings (Vulkan, API 29/32, IL2CPP, ARM64, Instancing)
- Unity Manual 6.6: Develop for Android XR
- Unity Manual 6.6: Foveated rendering overview and requirements
- Unity Manual 6.6: Stereo rendering, multi-pass compared with single pass instanced
- Unity Manual 6.6: Run an XR application, Mock HMD and XR Interaction Simulator
- XR Interaction Toolkit 3.5.1: package overview and known limitations
- XR Interaction Toolkit 3.5.1: changelog (released 2026-06-02, minimum Unity 6000.0)
- XR Interaction Toolkit 3.5: what’s new, simulated hand poses and point and click
- XR Interaction Toolkit 3.5: locomotion architecture, Locomotion Mediator and XR Body Transformer
- XR Interaction Toolkit 3.5: XR Interaction Simulator overview and requirements
- OpenXR Plugin 1.17: runtimes, preferred graphics API and OpenXR-SDK version
- OpenXR Plugin 1.17: Meta Quest Support feature and rendering settings
- OpenXR Plugin 1.17: foveated rendering prerequisites and SRP API configuration
- OpenXR Plugin 1.17: performance settings, performance level hints
- Unity OpenXR: Android XR 1.0.2 package overview and feature list
- PolySpatial visionOS 3.2: requirements (Unity 6.3, Apple Silicon, Xcode 16, visionOS 2.0 SDK, URP)
- PolySpatial visionOS 3.2: platform overview and application modes
Frequently asked questions
- Which Unity version should I use for XR development?
- Use Unity 6.3 LTS (6000.3) unless you need something newer, in which case Unity 6.6 (6000.6) is the current release. The XR Interaction Toolkit 3.5.1 requires Unity 6000.0 LTS or newer, and the visionOS packages require Unity 6.3 specifically, so older 2022.3 tutorials no longer describe the current setup.
- Do I need the Meta XR SDK to build for Quest in Unity?
- No. The OpenXR plug-in plus the Meta Quest Support feature is enough to produce an APK for the Quest family, and Unity recommends the Oculus Touch Controller Profile for Quest controllers. Vendor SDKs are only needed for vendor-specific features, such as Meta's own foveated rendering API or platform integrations that OpenXR does not standardise.
- How do I enable foveated rendering in Unity XR?
- Enable the Foveated Rendering feature under XR Plug-in Management, OpenXR, then set Foveated Rendering Method to Foveated rendering (SRP API). The project must be on Unity 6 or newer, OpenXR plug-in 1.11 or newer, and URP. Strength starts at off, so you also have to set the foveation level at runtime for it to do anything.
- Can I test a Unity XR app without a headset?
- Yes, partially. The XR Interaction Simulator sample drives the XR Origin indirectly through simulated Input System input, so controller and hand interactions can be exercised from a keyboard and mouse. The older Mock HMD provider simulates a head mounted display in the Game view but does not simulate input or tracking.
- Does Unity support Apple Vision Pro?
- Yes, through the visionOS packages and PolySpatial 3.x, which require Unity 6.3 or newer, an Apple Silicon Mac, Xcode 16 beta 1 or newer and the visionOS 2.0 SDK. PolySpatial and visionOS support is limited to Unity Pro, Enterprise and Industry licences, and RealityKit renders the content, so only a subset of ShaderGraph is supported.
- What is the difference between XR Plug-in Management and the XR Interaction Toolkit?
- XR Plug-in Management is the project settings layer that enables a provider plug-in such as OpenXR and validates the project for each build target. The XR Interaction Toolkit sits above it and supplies the runtime components, the XR Origin rig, interactors, locomotion providers and input handling that turn tracking data into an application.
Related reading
Unreal Engine 6 Is Being Rebuilt for Agents, Not You
Epic is cutting Blueprints and the Gameplay Framework from UE6 while Android XR turns engines into swappable renderers. VR's smallest teams pay twice.
Godot XR Development: A Practical OpenXR Guide
How to build a Godot 4.7 XR project for Quest, Android XR and Steam Frame: project setup, renderer choice, action maps, export and where the frames go.
XR Game Engines Compared: Unity, Unreal, and Godot
Unity, Unreal, and Godot all target OpenXR, but they differ on visionOS support, licensing, renderer headroom, and iteration speed. How to choose for XR.