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

Preview

com.unity.xr.openxr

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)

Package Dependencies

Features

  • Added the Hand Interaction Profile Microgestures feature, which binds to the swipe and tap microgesture inputs that the `XR_META_hand_tracking_microgestures` extension adds to the Hand Interaction Profile. Refer to [Hand Interaction Profile Microgestures](xref:openxr-hand-interaction-profile-microgestures).
  • Added [`MockOpenXREnvironment.SetSystemExtensionEnabled`](xref:UnityEngine.XR.OpenXR.TestTooling.MockOpenXREnvironment.SetSystemExtensionEnabled(System.String,System.Boolean)), which sets whether the mock runtime reports an Android system extension as enabled to `OpenXRRuntime.IsSystemExtensionEnabled`.
  • Added `XrReferenceSpaceType.StationaryReferenceSpaceExt` for the `XR_EXT_stationary_reference_space` extension.
  • Added `XrStationaryReferenceSpaceFeature`, a feature for creating, destroying, and querying the validity of a stationary reference space (`XR_EXT_stationary_reference_space`). `InitializeStationaryReferenceSpace` returns an `OpenXRResultStatus`.
  • Added `XrStationaryReferenceSpaceFeature.LocateAppSpaceInStationarySpace`, `LocateStationarySpaceInAppSpace`, `LocateTargetSpaceInStationarySpace`, and `LocateStationarySpaceInBaseSpace` for locating spaces relative to the stationary reference space. Each returns an `OpenXRResultStatus` and outputs the pose with its `XrSpaceLocationFlags`.
  • Added `XrStationaryReferenceSpaceFeature.stationarySpaceChanged` event, raised when the runtime reports a reference space change for the stationary reference space.
  • Added `OpenXRFeature.OnReferenceSpaceChanged`, called when the runtime reports a reference space change.
  • Added `XrStationaryReferenceSpaceFeature.GetStationarySpaceGenerationId`, returning an `OpenXRResultStatus`, for querying the generation ID (`XrUuid`) of the stationary reference space (`XR_EXT_stationary_reference_space`). The runtime assigns a new generation ID when it can't relocate the previous stationary reference space origin and starts a new one. Recentering doesn't change the generation ID.

Improvements

  • Updated the package version to 7.0.0-pre.1.
  • Updated the minimum supported Unity version to 7000.0.
  • Upgraded the Android NDK version used to build the native plug-ins from r16b to r25b. This upgrade has no effect on your app's behavior.
  • Changed the sample descriptions in the Package Manager to use one short summary followed by a list of each sample's dependencies, matching the other XR packages.
  • Updated the `TrackingOrigin` sample to include an example of how to use the Stationary Reference Space feature.

Bug Fixes

  • Fixed deprecated warnings when using XR Composition Layers version 7.0.0-pre.1 or newer.
  • Fixed the `Unity.XR.OpenXR` assembly failing to compile on Unity 7000.0 because `OpenXRProjectionLayer` subscribed to the obsolete `Camera.onPostRender`. The projection layer now relies on `RenderPipelineManager.endCameraRendering` only, since the Built-in Render Pipeline is removed in Unity 7.
  • Fixed composition layers to keep rendering, without blank frames, after `CompositionLayer.ChangeLayerDataType` switches between types that share a swapchain, such as quad and cylinder. Switching to a type that needs a different swapchain, such as quad to cube, logs a warning that the layer must be recreated to change to that type.
  • Fixed a `NullReferenceException` thrown every frame by `OpenXRLayerProvider.UpdateLayers` when a Composition Layer with no Layer Type was present in the scene and a headset was connected.
  • Fixed builds for build target groups that OpenXR does not support, such as visionOS, failing with `No OpenXR loader library found` when the OpenXR loader is assigned to that build target group. The build now removes the OpenXR loader from that build target group in XR Plug-in Management and logs a warning. On iOS and visionOS, the OpenXR loader no longer initializes at runtime, so XR Plug-in Management continues to the next loader in the list.
  • Fixed `OpenXRFeatureAttribute` throwing an `ArgumentNullException` when resolving a feature's documentation link in projects that compile scripts with the MSBuild compilat