com.unity.xr.openxr 1.18.0

com.unity.xr.openxr

Source docs
Notes: processedReleased August 11, 2026

Browse versions

PreviousNext

Download Options

Direct package downloads captured from Unity's package registry.

Unity Compatibility

Minimum Unity: 6000.0

Package Dependencies

Features

  • Added `gripOrientation` and `pointerOrientation` as aliases for `deviceRotation` and `pointerRotation` in `HandInteractionProfile`.
  • Added `palmOrientation` as an alias for `palmRotation` in `PalmPoseInteraction`.

Improvements

  • Changed [`AndroidMouseInteractionProfile.AndroidMouseInteraction`](xref:UnityEngine.XR.OpenXR.Features.Interactions.AndroidMouseInteractionProfile.AndroidMouseInteraction) to have its `aim` control type declared as either `UnityEngine.InputSystem.XR.PoseControl` or `UnityEngine.XR.OpenXR.Input.PoseControl` based on `USE_INPUT_SYSTEM_POSE_CONTROL` in Scripting Define Symbols under Player settings, matching the other interaction input devices. This is potentially a breaking change if you did not opt-in to the Project Validation rule "Switch to use InputSystem.XR.PoseControl instead of OpenXR.Input.PoseControl, which will be deprecated in a future release." If you were referencing the `aim` property directly through scripting, or reading the value of an input action with a binding to that control, you may need to adjust the type of struct you read.

API Changes

  • Removed redundant `palmPosition` and `palmRotation` aliases from `devicePosition` and `deviceRotation` in `PalmPoseInteraction`.

Bug Fixes

  • Fixed `XrSpaceLocationFlags` and `XrViewStateFlags` underlying type to `ulong` (`XrFlags64`) so their sizes match the OpenXR spec.
  • Fixed `XrSpatialPersistenceDataEXT` to use 4-byte alignment instead of 8-byte alignment, correctly aligning its size with the OpenXR C ABI.
  • Fixed [`PalmPoseInteraction.PalmPose`](xref:UnityEngine.XR.OpenXR.Features.Interactions.PalmPoseInteraction.PalmPose) input device not finishing setup of all input control properties where the input control properties other than `palmPose` were `null`.
  • Fixed `OpenXRHmd` input device not finishing setup of the `userPresence` input control property.
  • Fixed some input devices not setting up the `StickControl`/`Vector2Control` input control properties correctly when `USE_STICK_CONTROL_THUMBSTICKS` scripting define symbol was not defined in the project.
  • Fixed several regressions from package version 1.17.0 caused by "Fixed compilation errors when OpenXR was present in Unity projects targeting non-XR supported platforms.":
  • - Fixed the Android Mouse Interaction (OpenXR) [`AndroidMouseInteractionProfile.AndroidMouseInteraction`](xref:UnityEngine.XR.OpenXR.Features.Interactions.AndroidMouseInteractionProfile.AndroidMouseInteraction) input device not having the `aim` property.
  • - Fixed the [`OpenXRDevice`](xref:UnityEngine.XR.OpenXR.Input.OpenXRDevice) not setting `{LeftHand}`/`{RightHand}` input device usages. This affects some derived input devices such as Hand Interaction Poses (OpenXR) ([`HandCommonPosesInteraction.HandInteractionPoses`](xref:UnityEngine.XR.OpenXR.Features.Interactions.HandCommonPosesInteraction.HandInteractionPoses)).
  • - Fixed the `OpenXRDevice` not being registered with the Input System as a base layout.
  • - Fixed some conditions for enabling Project Validation rules related to D-Pad Binding and Palm Pose features when only the Eye Gaze Interaction Profile is enabled.
  • - Fixed an issue where package setting assets would be refreshed on Unity Editor startup, causing import errors. This was implemented by separating refreshing OpenXR Features from querying OpenXR Features.
  • - Fixed compilation errors caused by lack of StaticCleanup attributes in Unity 6.7.