Class XRDevice
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
fovZoomFactor
Declaration
public static float fovZoomFactor { get; set; }
Property Value
isPresent
Declaration
public static bool isPresent { get; }
Property Value
model
Declaration
public static string model { get; }
Property Value
refreshRate
Declaration
public static float refreshRate { get; }
Property Value
trackingOriginMode
Declaration
public static TrackingOriginMode trackingOriginMode { get; }
Property Value
userPresence
Declaration
public static UserPresenceState userPresence { get; }
Property Value
Methods
DisableAutoXRCameraTracking(Camera, Boolean)
Declaration
public static void DisableAutoXRCameraTracking(Camera camera, bool disabled)
Parameters
GetNativePtr()
Declaration
public static IntPtr GetNativePtr()
Returns
GetTrackingSpaceType()
Declaration
public static TrackingSpaceType GetTrackingSpaceType()
Returns
SetTrackingSpaceType(TrackingSpaceType)
Declaration
public static bool SetTrackingSpaceType(TrackingSpaceType trackingSpaceType)
Parameters
Returns
Events
|
Improve this Doc
View Source
deviceLoaded
Declaration
public static event Action<string> deviceLoaded
Event Type