com.unity.xr.compositionlayers 7.0.0-pre.1

Preview

com.unity.xr.compositionlayers

Source docs
Notes: processedReleased November 23, 2026

Browse versions

PreviousNext

Download Options

Direct package downloads captured from Unity's package registry.

Unity Compatibility

Minimum Unity: 7000.0 (0a12)

Features

  • Added the `MirrorViewRenderer.AlphaBlendMode` property, which reads and writes the value of the `AlphaMode` field.
  • Added the `CompositionLayerDataAttribute.SuggestedExtensionTypes` property, which reads and writes the value of the misspelled `SuggestedExtenstionTypes` field and works as an attribute named argument.
  • Added the protected `LayerUIScale` properties `TexturesExtension`, `CanvasRect`, `CanvasSizeX`, `CanvasSizeY`, `CanvasScaleX` and `CanvasScaleY`, which read and write the values of the fields they replace.
  • Added `protected ReportChange()` to `CompositionLayerExtension` and `LayerData`. Subclasses call it to report a change to the layer provider when they modify state in place, for example a collection or texture they reference, which `UpdateValue` can't detect.

Improvements

  • Changed the log when an emulated layer can't find the Uber shader from a warning to an error, since the layer doesn't render.
  • Changed `CompositionLayer` to draw the Scene view outline of Quad and Cylinder layers itself. Earlier versions added a hidden `CompositionOutline` component to every layer and saved it in the scene. A layer now removes that component from its GameObject the next time the scene opens in the Unity Editor, and the package's own scenes no longer contain it.
  • Updated Universal Render Pipeline (URP) support to require the URP 17 render graph system, and removed support for URP Compatibility Mode.
  • Changed the minimum XR Interaction Toolkit version for Composition Layer UI interaction to 3.6.1. Projects that rely on UI interaction with an older XR Interaction Toolkit must upgrade to 3.6.1 or newer. XR Interaction Toolkit remains an optional package and projects without it compile as before. The Interactable UI Mirror inspector distinguishes a missing XR Interaction Toolkit from an installed version older than 3.6.1, and offers to upgrade it. For more information, refer to [Upgrade to Composition Layers 7.0](xref:xr-layers-upgrade-guide-7.0).
  • Changed the `ReportStateChange` callback on `CompositionLayerExtension` and `LayerData` from `protected internal` to `internal`. The package manages it, and it was never meant to be assigned or invoked by subclasses. Report property changes through `UpdateValue`, or through the new `protected ReportChange()` when state is modified in place. For more information, refer to [Upgrade to Composition Layers 7.0](xref:xr-layers-upgrade-guide-7.0).
  • Changed the minimum OpenXR Plugin version for composition layers at runtime to 7.0.0-pre.1.
  • Changed the package version from 2.6.1 to 7.0.0-pre.1 to align the package major version with Unity 7.
  • Changed the minimum Unity version from 6000.0 to 7000.0.
  • Renamed public API members to follow C# and Unity conventions. Previous names are now obsolete members that forward to the new equivalent. Unity's script updater rewrites references to the new names the next time the project is opened in the Unity Editor. Renamed the following members:
  • - `TexturesExtension.sourceTexture` is now `SourceTexture`.
  • - `CompositionLayerManager.mainCameraCache` is now `MainCameraCache`.
  • Renamed the External Surface sample's assembly from `AndriodSurfaceSample` to `AndroidSurfaceSample` and fixed the sample's display name. The sample imports into a new folder named after the corrected display name, so delete the previously imported sample from `Assets/Samples/XR Composition Layers` before importing it again. Otherwise the two copies conflict on their `.meta` file GUIDs.
  • Changed XR Composition Layers to include the Uber, Color Scale Bias, and Blit Copy HDR shaders in every build through the Composition Layers settings asset in **Preloaded Assets** in the active **Player Settings**. Until the asset is set up on the **Composition Layers** settings page or with **Fix** in Project Validation, player builds log a warning and emulated layers don't render in players. If the asset turns on the splash screen or **Emulation in Standalone**, builds fail instead, since players would ignore it. Commit the asset and the **Player Settings** change. F