Rasagar/Library/PackageCache/com.unity.postprocessing/PostProcessing/Runtime/Utils/XRSettings.cs

28 lines
1.3 KiB
C#
Raw Normal View History

2024-09-27 10:27:46 -07:00
// Small shim
#if ((UNITY_XBOXONE || UNITY_SWITCH || UNITY_PSP2) && !UNITY_2018_3_OR_NEWER) && !UNITY_EDITOR
using System;
namespace UnityEngine.XR
{
public static class XRSettings
{
public static bool enabled { get; set; }
public static bool isDeviceActive { get; private set; }
public static bool showDeviceView { get; set; }
[Obsolete("renderScale is deprecated, use XRSettings.eyeTextureResolutionScale instead (UnityUpgradable) -> eyeTextureResolutionScale")]
public static float renderScale { get; set; }
public static float eyeTextureResolutionScale { get; set; }
public static int eyeTextureWidth { get; private set; }
public static int eyeTextureHeight { get; private set; }
public static RenderTextureDescriptor eyeTextureDesc { get; private set; }
public static float renderViewportScale { get; set; }
public static float occlusionMaskScale { get; set; }
public static bool useOcclusionMesh { get; set; }
public static string loadedDeviceName { get; private set; }
public static string[] supportedDevices { get; private set; }
public static void LoadDeviceByName(string deviceName) {}
public static void LoadDeviceByName(string[] prioritizedDeviceNameList) {}
}
}
#endif