Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


disablePositionalTracking

Disables positional tracking in XR. This takes effect the next time the head pose is sampled. If set to true the camera only tracks headset rotation state.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
Warning
Deprecated. This API is obsolete, and should no longer be used. Please use the TrackedPoseDriver in the Legacy Input Helpers package for controlling a camera in XR.
public static bool disablePositionalTracking { get; set; }

Remarks

This will disable the neck model in seated XR experiences. The only positional component remaining is the space between the eyes.
This functionality is most useful for 360 video use case where you don't want to allow the head to translate at all.