Select your preferred scripting language. All code snippets will be displayed in this language.
class in UnityEngine.XR
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
CloseContains all functionality related to a XR device.
fovZoomFactor | Zooms the XR projection. |
isPresent | Successfully detected a XR device in working order. |
model | Specific model of loaded XR device. |
refreshRate | Refresh rate of the display in Hertz. |
userPresence | Indicates whether the user is present and interacting with the device. |
DisableAutoXRCameraTracking | Sets whether the camera passed in the first parameter is controlled implicitly by the XR Device |
GetNativePtr | This method returns an IntPtr representing the native pointer to the XR device if one is available, otherwise the value will be IntPtr.Zero. |
GetTrackingSpaceType | Returns the device's current TrackingSpaceType. This value determines how the camera is positioned relative to its starting position. For more, see the section "Understanding the camera" in VROverview. |
SetTrackingSpaceType | Sets the device's current TrackingSpaceType. Returns true on success. Returns false if the given TrackingSpaceType is not supported or the device fails to switch. |