forked from bbepis/XUnity.AutoTranslator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScreen.cs
More file actions
92 lines (77 loc) · 1.65 KB
/
Screen.cs
File metadata and controls
92 lines (77 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using UnityEngine.Rendering;
using UnityEngine.SceneManagement;
namespace UnityEngine
{
public sealed class Screen
{
public static Resolution[] resolutions
{
get;
}
public static Resolution currentResolution
{
get;
}
public static int width
{
get;
}
public static int height
{
get;
}
public static float dpi
{
get;
}
public static bool fullScreen
{
get;
set;
}
public static bool autorotateToPortrait
{
get;
set;
}
public static bool autorotateToPortraitUpsideDown
{
get;
set;
}
public static bool autorotateToLandscapeLeft
{
get;
set;
}
public static bool autorotateToLandscapeRight
{
get;
set;
}
public static ScreenOrientation orientation
{
get;
set;
}
public static int sleepTimeout
{
get;
set;
}
public static bool lockCursor => throw new NotImplementedException();
public static extern void SetResolution( int width, int height, bool fullscreen, int preferredRefreshRate );
public static void SetResolution( int width, int height, bool fullscreen )
{
int preferredRefreshRate = 0;
SetResolution( width, height, fullscreen, preferredRefreshRate );
}
}
}