com.unity.xr.compositionlayers 2.4.0

com.unity.xr.compositionlayers

Source docs
Notes: processedReleased March 16, 2026

Browse versions

PreviousNext

Download Options

Direct package downloads captured from Unity's package registry.

Unity Compatibility

Minimum Unity: 2022.3 (11f1)

Features

  • Added `CompositionLayerManager.TryGetLayerId(CompositionLayer layer, out int layerId)` to get a layer's unique id instead of `GetInstanceID()` or `GetEntityID()`.

Bug Fixes

  • Fixed `InteractableUIMirror` to support creating or duplicating them during runtime such as with prefabs or asset bundles.
  • Fixed `CompositionLayersRuntimeSettings` so that the `Script` property is no longer modifiable from the inspector.
  • Fixed `InteractableUIMirror` so cameras can be added at runtime without camera layer issues.
  • Fixed `ScriptableSingleton` warning log when first launching a project with the composition layers package.

Improvements

  • Changed `InteractactableUIMirror` Cameras so they are visible in the inspector
  • Changed how CompositionLayerManager initializes `LayerInfo.Id` to use its own generated unique ids instead of `GetInstanceID()` or `GetEntityID()`.