ドキュメント

Unity Engine

Download Unity

Unity Engine

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 projectionXR 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 CameraThe 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 canvasesURP 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 platformsMeta 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 viewportsUntethered XR devices don't support cameras that render to part of the screen, such as split-screen layouts.
Variable rate shading (VRS) with foveated renderingOn 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 outputURP 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 primingDepth 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.
MSAAURP 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 resolutionURP 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 outputURP uses the HDR output settings of the XR display, not the main display.
Custom shaders and renderer featuresIn 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 GPUsIn 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 renderingRenders 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 renderingReduces 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 meshSkips 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
false
. To adjust the size of the mesh, use XRSRPSettings.occlusionMeshScale.
Mirror viewDisplays 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 SpaceWarpRenders 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
XRMotionVectors
pass.
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 ModeRestricts 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.

Additional resources