scripts
This commit is contained in:
@@ -0,0 +1,174 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.VR
|
||||
{
|
||||
// Token: 0x020002F8 RID: 760
|
||||
public static class VRSettings
|
||||
{
|
||||
// Token: 0x17000B14 RID: 2836
|
||||
// (get) Token: 0x06003128 RID: 12584
|
||||
// (set) Token: 0x06003129 RID: 12585
|
||||
public static extern bool enabled
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x17000B15 RID: 2837
|
||||
// (get) Token: 0x0600312A RID: 12586
|
||||
public static extern bool isDeviceActive
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x17000B16 RID: 2838
|
||||
// (get) Token: 0x0600312B RID: 12587
|
||||
// (set) Token: 0x0600312C RID: 12588
|
||||
public static extern bool showDeviceView
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x17000B17 RID: 2839
|
||||
// (get) Token: 0x0600312D RID: 12589
|
||||
// (set) Token: 0x0600312E RID: 12590
|
||||
public static extern float renderScale
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x17000B18 RID: 2840
|
||||
// (get) Token: 0x0600312F RID: 12591
|
||||
public static extern int eyeTextureWidth
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x17000B19 RID: 2841
|
||||
// (get) Token: 0x06003130 RID: 12592
|
||||
public static extern int eyeTextureHeight
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x17000B1A RID: 2842
|
||||
// (get) Token: 0x06003131 RID: 12593 RVA: 0x000499B4 File Offset: 0x00047BB4
|
||||
// (set) Token: 0x06003132 RID: 12594 RVA: 0x000499D0 File Offset: 0x00047BD0
|
||||
public static float renderViewportScale
|
||||
{
|
||||
get
|
||||
{
|
||||
return VRSettings.renderViewportScaleInternal;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (value < 0f || value > 1f)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException("value", "Render viewport scale should be between 0 and 1.");
|
||||
}
|
||||
VRSettings.renderViewportScaleInternal = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000B1B RID: 2843
|
||||
// (get) Token: 0x06003133 RID: 12595
|
||||
// (set) Token: 0x06003134 RID: 12596
|
||||
internal static extern float renderViewportScaleInternal
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x17000B1C RID: 2844
|
||||
// (get) Token: 0x06003135 RID: 12597
|
||||
// (set) Token: 0x06003136 RID: 12598
|
||||
public static extern float occlusionMaskScale
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x17000B1D RID: 2845
|
||||
// (get) Token: 0x06003137 RID: 12599 RVA: 0x00049A00 File Offset: 0x00047C00
|
||||
// (set) Token: 0x06003138 RID: 12600 RVA: 0x00049A54 File Offset: 0x00047C54
|
||||
[Obsolete("loadedDevice is deprecated. Use loadedDeviceName and LoadDeviceByName instead.")]
|
||||
public static VRDeviceType loadedDevice
|
||||
{
|
||||
get
|
||||
{
|
||||
VRDeviceType vrdeviceType = VRDeviceType.Unknown;
|
||||
try
|
||||
{
|
||||
vrdeviceType = (VRDeviceType)Enum.Parse(typeof(VRDeviceType), VRSettings.loadedDeviceName, true);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
return vrdeviceType;
|
||||
}
|
||||
set
|
||||
{
|
||||
VRSettings.LoadDeviceByName(value.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000B1E RID: 2846
|
||||
// (get) Token: 0x06003139 RID: 12601
|
||||
public static extern string loadedDeviceName
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x0600313A RID: 12602 RVA: 0x00049A6C File Offset: 0x00047C6C
|
||||
public static void LoadDeviceByName(string deviceName)
|
||||
{
|
||||
VRSettings.LoadDeviceByName(new string[] { deviceName });
|
||||
}
|
||||
|
||||
// Token: 0x0600313B RID: 12603
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern void LoadDeviceByName(string[] prioritizedDeviceNameList);
|
||||
|
||||
// Token: 0x17000B1F RID: 2847
|
||||
// (get) Token: 0x0600313C RID: 12604
|
||||
public static extern string[] supportedDevices
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user