198 lines
5.1 KiB
C#
198 lines
5.1 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.Runtime.CompilerServices;
|
|
using UnityEngine.Internal;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace UnityEngine
|
|
{
|
|
// Token: 0x0200005F RID: 95
|
|
public sealed class Screen
|
|
{
|
|
// Token: 0x17000198 RID: 408
|
|
// (get) Token: 0x0600075D RID: 1885
|
|
public static extern Resolution[] resolutions
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
}
|
|
|
|
// Token: 0x17000199 RID: 409
|
|
// (get) Token: 0x0600075E RID: 1886 RVA: 0x0000A034 File Offset: 0x00008234
|
|
public static Resolution currentResolution
|
|
{
|
|
get
|
|
{
|
|
Resolution resolution;
|
|
Screen.INTERNAL_get_currentResolution(out resolution);
|
|
return resolution;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600075F RID: 1887
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_get_currentResolution(out Resolution value);
|
|
|
|
// Token: 0x06000760 RID: 1888
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public static extern void SetResolution(int width, int height, bool fullscreen, [UnityEngine.Internal.DefaultValue("0")] int preferredRefreshRate);
|
|
|
|
// Token: 0x06000761 RID: 1889 RVA: 0x0000A054 File Offset: 0x00008254
|
|
[ExcludeFromDocs]
|
|
public static void SetResolution(int width, int height, bool fullscreen)
|
|
{
|
|
int num = 0;
|
|
Screen.SetResolution(width, height, fullscreen, num);
|
|
}
|
|
|
|
// Token: 0x1700019A RID: 410
|
|
// (get) Token: 0x06000762 RID: 1890
|
|
[ThreadAndSerializationSafe]
|
|
public static extern int width
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
}
|
|
|
|
// Token: 0x1700019B RID: 411
|
|
// (get) Token: 0x06000763 RID: 1891
|
|
[ThreadAndSerializationSafe]
|
|
public static extern int height
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
}
|
|
|
|
// Token: 0x1700019C RID: 412
|
|
// (get) Token: 0x06000764 RID: 1892
|
|
public static extern float dpi
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
}
|
|
|
|
// Token: 0x1700019D RID: 413
|
|
// (get) Token: 0x06000765 RID: 1893
|
|
// (set) Token: 0x06000766 RID: 1894
|
|
public static extern bool fullScreen
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700019E RID: 414
|
|
// (get) Token: 0x06000767 RID: 1895
|
|
// (set) Token: 0x06000768 RID: 1896
|
|
public static extern bool autorotateToPortrait
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700019F RID: 415
|
|
// (get) Token: 0x06000769 RID: 1897
|
|
// (set) Token: 0x0600076A RID: 1898
|
|
public static extern bool autorotateToPortraitUpsideDown
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x170001A0 RID: 416
|
|
// (get) Token: 0x0600076B RID: 1899
|
|
// (set) Token: 0x0600076C RID: 1900
|
|
public static extern bool autorotateToLandscapeLeft
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x170001A1 RID: 417
|
|
// (get) Token: 0x0600076D RID: 1901
|
|
// (set) Token: 0x0600076E RID: 1902
|
|
public static extern bool autorotateToLandscapeRight
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x170001A2 RID: 418
|
|
// (get) Token: 0x0600076F RID: 1903
|
|
// (set) Token: 0x06000770 RID: 1904
|
|
public static extern ScreenOrientation orientation
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x170001A3 RID: 419
|
|
// (get) Token: 0x06000771 RID: 1905
|
|
// (set) Token: 0x06000772 RID: 1906
|
|
public static extern int sleepTimeout
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x170001A4 RID: 420
|
|
// (get) Token: 0x06000773 RID: 1907 RVA: 0x0000A070 File Offset: 0x00008270
|
|
// (set) Token: 0x06000774 RID: 1908 RVA: 0x0000A090 File Offset: 0x00008290
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
[Obsolete("Use Cursor.lockState and Cursor.visible instead.", false)]
|
|
public static bool lockCursor
|
|
{
|
|
get
|
|
{
|
|
return CursorLockMode.Locked == Cursor.lockState;
|
|
}
|
|
set
|
|
{
|
|
if (value)
|
|
{
|
|
Cursor.visible = false;
|
|
Cursor.lockState = CursorLockMode.Locked;
|
|
}
|
|
else
|
|
{
|
|
Cursor.lockState = CursorLockMode.None;
|
|
Cursor.visible = true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|