Skip to main content
Version: 12 Dec 2024

HMD Tracked Pose Driver

In order for your unity camera to track with head pose, it needs to have the Tracked Pose Driver component with the following settings. Depending on your app setup, you can either add this component to the main camera yourself, or get it through prefabs like the XRRig (from the XR Interaction Toolkit) or the "Main Camera" (from our SDK package).

Unity Input System - Tracked Pose Driver

The Tracked Pose Driver allows objects to mirror the positional and rotation input of any Input Device. To track the HMD position :

  1. Add a Tracked Pose Driver (Input System) component to the target transform.
  2. Set the Tracking Type to Rotation And Position.
  3. For the both the Position and Rotation input set the Input Action binding path to XR HMD.
Unity Input System's Tracked Pose Driver Component

XR - Tracked Pose Driver

The Tracked Pose Driver component has the same functionality as the Tracked Pose Driver (Input System) component. However, instead of binding to an Input Device, the XR version is bound to an XR Device. To mirror the HMD's positional and rotational input do the following :

  1. Add a Tracked Pose Driver component to the target transform.
  2. Set the device to Generic XR Device.
  3. Set the pose source as Center Eye - HMD Reference
  4. Finally, set the Tracking Type to Rotation And Position.
Unity's XR Tracked Pose Driver Component

See also