Show / Hide Table of Contents

Class XRDevice

Inheritance
Object
XRDevice
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine.XR
Assembly: UnityEngine.dll
Syntax
public static class XRDevice

Properties

family

Declaration
[Obsolete("family is deprecated.  Use XRSettings.loadedDeviceName instead.", false)]
public static string family { get; }
Property Value
Type Description
String

fovZoomFactor

Declaration
public static float fovZoomFactor { get; set; }
Property Value
Type Description
Single

isPresent

Declaration
public static bool isPresent { get; }
Property Value
Type Description
Boolean

model

Declaration
public static string model { get; }
Property Value
Type Description
String

refreshRate

Declaration
public static float refreshRate { get; }
Property Value
Type Description
Single

trackingOriginMode

Declaration
public static TrackingOriginMode trackingOriginMode { get; }
Property Value
Type Description
TrackingOriginMode

userPresence

Declaration
public static UserPresenceState userPresence { get; }
Property Value
Type Description
UserPresenceState

Methods

DisableAutoXRCameraTracking(Camera, Boolean)

Declaration
public static void DisableAutoXRCameraTracking(Camera camera, bool disabled)
Parameters
Type Name Description
Camera camera
Boolean disabled

GetNativePtr()

Declaration
public static IntPtr GetNativePtr()
Returns
Type Description
IntPtr

GetTrackingSpaceType()

Declaration
public static TrackingSpaceType GetTrackingSpaceType()
Returns
Type Description
TrackingSpaceType

SetTrackingSpaceType(TrackingSpaceType)

Declaration
public static bool SetTrackingSpaceType(TrackingSpaceType trackingSpaceType)
Parameters
Type Name Description
TrackingSpaceType trackingSpaceType
Returns
Type Description
Boolean

Events

| Improve this Doc View Source

deviceLoaded

Declaration
public static event Action<string> deviceLoaded
Event Type
Type Description
Action<String>
  • Improve this Doc
  • View Source
Back to top Generated by DocFX