Install XR Composition Layers
XR Composition Layers is an official Unity package available via the Package Manager.
Editor compatibility
This version of Composition Layers is compatible with Unity Editor version 2022.3 and later.
Required packages
The XR Composition Layers package contains interfaces, types, and emulation for accessing composition layers, but does not provide a runtime implementation. To use composition layers at runtime, you must also install an XR Provider plug-in that implements the ILayerProvider interface.
Provider plug-in package | Version |
---|---|
OpenXR | 1.13.2 |
Please note for older versions of Compoition Layers there are different versions of the OpenXR package that are compatible. The following chart highlights the compatibility between past Composition Layers and OpenXR package versions.
Composition Layers Package Version | OpenXR Package Version |
---|---|
2.0.0 |
1.13.2 |
1.0.0 |
1.13.0 |
0.6.0 |
1.12.1-exp.1 |
0.5.0 |
1.11.0-exp.1 |
Installation
To install this package in Unity 2022.3+:
Open the project that you plan to use.
Click the following link: com.unity.xr.compositionlayers.
The Unity Package Manager window opens with the package name entered in the Add package by name dialog.
(Optional) Enter the full version number, such as
1.0.0
, to install. If left blank, Unity chooses the "best" version -- typically the latest, release version for the current Unity Editor. Refer to the Changelog for a list of versions available at the time this documentation page was published.Click Add.
After you install the package, refer to Settings for additional configuration information.