Universal Render Pipeline feature support in XR reference
Understand which Universal Render Pipeline features are unsupported, behave differently, or are specific to XR platforms.
読み終わるまでの所要時間 5 分最終更新 9日前
Most of the Universal Render Pipeline (URP) features work in XR the same way they work on other platforms. However, there are some exceptions. The following sections outline the features that XR doesn't support, features that need XR-specific configuration, and rendering features that are specific to XR.
If a URP feature isn't listed on this page, it works in XR the same way as on other platforms.
To determine which version of URP is compatible with your current Unity version, refer to the Requirements and compatibility page in the Universal Render Pipeline documentation.
Unsupported features
The following URP features aren't supported in XR projects:
Feature | Details |
|---|---|
| Orthographic projection | XR requires perspective projection. If a camera that renders to an XR device uses orthographic projection, Unity displays a warning in the Inspector window and logs a warning at runtime, and the camera might produce rendering artifacts. Set the camera's Projection property to Perspective. |
| Physical Camera | The XR device determines the camera's projection. URP ignores physical camera properties, such as Focal Length and Sensor Size, when it calculates the projection for XR rendering. |
| Screen Space - Overlay canvases | URP doesn't render canvases that use the Screen Space - Overlay render mode to the XR device. These canvases appear only in the mirror view on the desktop. To display UI in the headset, use a canvas with the World Space render mode. |
| Per-light soft shadow quality on Meta platforms | Meta platforms don't support the per-light Soft Shadows Quality setting on the Light component. Use the Soft Shadows > Quality setting in the URP Asset instead. |
The following URP features aren't supported on untethered XR devices:
Feature | Details |
|---|---|
| Spatial-Temporal Post-processing (STP) | Untethered XR devices don't support STP. |
| Split-screen and multiple viewports | Untethered XR devices don't support cameras that render to part of the screen, such as split-screen layouts. |
| Variable rate shading (VRS) with foveated rendering | On untethered XR devices, you can't use VRS when foveated rendering is enabled. |
XR-specific configuration
XR projects support the following URP features, but have different requirements or behavior than on other platforms:
Feature | XR requirements and behavior |
|---|---|
| Camera output | URP renders a camera to the XR device only if the camera's Target Eye property is set to Both, and the camera doesn't render to a render texture. Scene view cameras, preview cameras, and cameras that render to a render texture use non-XR rendering. |
| Temporal anti-aliasing (TAA) | You must disable MSAA in the URP Asset to use TAA in XR. TAA also has the same requirements as on other platforms. For example, TAA doesn't support camera stacking or dynamic resolution. If temporal pixel synthesis (TPS) is active, URP ignores the TAA setting, because the XR compositor applies anti-aliasing instead. For more information, refer to Add anti-aliasing in the Universal Render Pipeline. |
| Depth priming | Depth priming isn't recommended on untethered XR devices, because their hardware low-resolution Z (LRZ) support provides a similar benefit. For more information, refer to Optimize for untethered XR devices in URP workflow. |
| MSAA | URP applies the MSAA setting from the URP Asset to the XR display. URP doesn't support MSAA with the Deferred or Deferred+ rendering path. If you use Deferred rendering, use temporal pixel synthesis (TPS) for anti-aliasing. For more information, refer to Optimize for untethered XR devices in URP workflow. |
| Render Scale and dynamic resolution | URP applies the Render Scale setting from the URP Asset to the XR display's render targets, and uses the XR display's viewport scale for dynamic resolution. For more information, refer to Resolution control in XR projects. |
| HDR output | URP uses the HDR output settings of the XR display, not the main display. |
| Custom shaders and renderer features | In single-pass stereo rendering, URP renders both eyes to texture arrays. Custom shaders and renderer features must use the XR shader macros to sample the correct eye. For more information, refer to Single-pass instanced rendering and custom shaders. |
| Post-processing on tile-based GPUs | In Unity 6.3 and newer, you can use on-tile post-processing to apply certain post-processing effects on untethered XR devices without leaving the tile. For more information, refer to On-tile post-processing and Tile-based rendering in XR. |
XR-specific features
URP supports the following rendering features that are specific to XR:
Feature | Description | Configuration |
|---|---|---|
| Stereo rendering | Renders the view for each eye. URP supports multi-pass, single-pass instanced, and multiview stereo rendering. | Set the stereo rendering mode in your XR provider plug-in settings. For more information, refer to Stereo rendering. |
| Foveated rendering | Reduces rendering resolution in the user's peripheral vision to improve performance. | Requires an XR provider and device that support foveated rendering. For more information, refer to Foveated rendering. |
| Occlusion mesh | Skips rendering pixels that aren't visible through the headset lenses. URP draws the occlusion mesh before it renders opaque objects, and draws post-processing effects only over the visible area. | Enabled by default if the XR provider supplies an occlusion mesh. To disable it, set XRSRPSettings.useVisibilityMesh to |
| Mirror view | Displays the XR device output in the desktop window. | To set the mirror view mode, use XRSRPSettings.mirrorViewMode. The available modes depend on the XR provider. |
| Motion vectors for Application SpaceWarp | Renders motion vectors and depth to the XR provider's motion vector target, so the XR runtime can synthesize frames. | Requires the Vulkan graphics API, single-pass stereo rendering, and an XR provider that requests motion vectors. Objects must use a shader with an |
| Temporal pixel synthesis (TPS) | Moves anti-aliasing and upscaling out of URP and into the XR compositor on the device. When TPS is active, URP disables its own TAA and upscalers. | Requires a Meta device with a runtime that supports TPS, the Vulkan graphics API, and single-pass instanced rendering. Enable TPS in the OpenXR settings. For more information, refer to Temporal pixel synthesis. |
| Tile-Only Mode | Restricts the renderer to features that keep rendering on-tile, to reduce memory bandwidth on tile-based GPUs. | Enable Tile-Only Mode in the Universal Renderer asset. For more information, refer to Reduce GPU bandwidth with on-tile rendering and Tile-based rendering in XR. |