1 // Small shim for VRSettings/XRSettings on XboxOne, Switch and PS Vita
2 #if ((UNITY_XBOXONE || UNITY_SWITCH || UNITY_PSP2) && !UNITY_2018_3_OR_NEWER) && !UNITY_EDITOR
5 #if UNITY_2017_2_OR_NEWER
6 namespace UnityEngine
.XR
8 namespace UnityEngine
.VR
11 #if UNITY_2017_2_OR_NEWER
12 public static class XRSettings
13 #elif UNITY_5_6_OR_NEWER
14 public static class VRSettings
17 public static bool enabled { get; set; }
18 public static bool isDeviceActive { get; private set; }
19 public static bool showDeviceView { get; set; }
20 [Obsolete("renderScale is deprecated, use XRSettings.eyeTextureResolutionScale instead (UnityUpgradable) -> eyeTextureResolutionScale")]
21 public static float renderScale { get; set; }
22 public static float eyeTextureResolutionScale { get; set; }
23 public static int eyeTextureWidth { get; private set; }
24 public static int eyeTextureHeight { get; private set; }
25 public static RenderTextureDescriptor eyeTextureDesc { get; private set; }
26 public static float renderViewportScale { get; set; }
27 public static float occlusionMaskScale { get; set; }
28 public static bool useOcclusionMesh { get; set; }
29 public static string loadedDeviceName { get; private set; }
30 public static string[] supportedDevices { get; private set; }
31 public static void LoadDeviceByName(string deviceName
) { }
32 public static void LoadDeviceByName(string[] prioritizedDeviceNameList
) { }