Project settings
To enable the Unity OpenXR: Meta in your project, follow the steps below:
- Go to Edit > Project Settings > XR Plug-in Management.
- In the Android tab, under Plug-in Providers, enable OpenXR.
- While still in the Project Settings window, go to XR Plug-in Management > OpenXR.
- In the Android tab, under Enabled Interaction Profiles, add Oculus Touch Controller Profile.
- Under OpenXR Feature Groups, enable the Meta Quest feature group.
The Meta Quest OpenXR feature group
Note
XR Plug-in Management supports only one enabled plug-in provider at a time per build target. If your project also targets ARCore using the Google ARCore XR Plug-in, to avoid errors you should disable the Google ARCore plug-in provider in the Android tab of Project Settings > XR Plug-in Management before you build an APK for Meta Quest devices. Likewise, you should disable OpenXR before you build for ARCore.
Vulkan Graphics API
Meta recommends that you use the Vulkan Graphics API in your project, as some of the newer features for Meta Quest devices are only supported with that API.
To change your project's Graphics API to Vulkan, follow these steps:
- Go to Edit > Project Settings > Player.
- Select the Android tab and open Other Settings.
- In the Rendering section, if Auto Graphics API is enabled, disable this setting to reveal the Graphics APIs section.
- Under Graphics APIs, click the Add button (+) to add a new Graphics API.
- Select Vulkan.
- Re-order the Graphics APIs using the handles (=) so that Vulkan is listed first.
- Optionally, select any other Graphics APIs and click the Remove button (-) to remove them.
Universal Render Pipeline
Meta Quest is compatible with the Universal Render Pipeline (URP), but the default URP settings are not suitable for best Passthrough performance on Quest. Refer to the table below for a list of Unity's recommended settings, which are explained in greater detail in the following sections.
Setting | Location | Recommended value |
---|---|---|
Terrain Holes | Universal Render Pipeline Asset | Disabled |
HDR | Universal Render Pipeline Asset | Disabled |
Post-processing | Universal Renderer Data | Disabled |
Intermediate Texture | Universal Renderer Data | Auto |
Universal Render Pipeline Asset settings
Follow the steps below to optimize your Universal Render Pipeline Asset for Meta Quest:
Locate your project's Universal Render Pipeline Asset. One way to do this is to type
t:UniversalRenderPipelineAsset
into the Project window's search bar.Tip
If your project does not contain a Universal Render Pipeline Asset, refer to Installing the Universal Render Pipeline into an existing Project from the URP docs.
In the Inspector, under the Rendering header, disable Terrain Holes.
Under the Quality header, disable HDR.
Universal Render Pipeline Asset shown with recommended settings
Universal Renderer Data settings
Follow the steps below to optimize your Universal Renderer Data for Meta Quest:
- Locate your project's Universal Renderer Data Asset. One way to do this is to type
t:UniversalRendererData
into the Project window's search bar. - In the Inspector, under the Post-processing header, uncheck Enabled.
- Under the Compatibility header, set the Intermediate Texture value to Auto.
Universal Renderer Data shown with recommended settings